getSamplesForWidth method

int getSamplesForWidth(
  1. double width
)

Determines number of samples which will fit in provided width. Returned number of samples are also dependent on spacing set for this constructor.

Implementation

int getSamplesForWidth(double width) {
  return width ~/ spacing;
}