LinearLocation.fromComponentSegmentIndexFractionNorm constructor

LinearLocation.fromComponentSegmentIndexFractionNorm(
  1. int componentIndex,
  2. int segmentIndex,
  3. double segmentFraction,
  4. bool doNormalize,
)

Implementation

LinearLocation.fromComponentSegmentIndexFractionNorm(int componentIndex,
    int segmentIndex, double segmentFraction, bool doNormalize) {
  this.componentIndex = componentIndex;
  this.segmentIndex = segmentIndex;
  this.segmentFraction = segmentFraction;
  if (doNormalize) normalize();
}