LineSegment.direction constructor

LineSegment.direction(
  1. Mappoint start,
  2. Mappoint direction,
  3. double distance
)

Ctor with given start point, a point that defines the direction of the line and a length

@param start start point @param direction point that defines the direction (a line from start to direction point) @param distance how long to move along the line between start and direction

Implementation

LineSegment.direction(this.start, Mappoint direction, double distance) : end = LineSegment(start, direction).pointAlongLineSegment(distance);