upEndVector property

Offset get upEndVector

The 'Up' vector for the end point, calculated if not already cached. This vector is perpendicular to the curve's direction at the end.

Implementation

Offset get upEndVector =>
    _upEndVector ??
    (_upEndVector = end.directionTo(point(0.999)).rotate(math.pi * 0.5));