direction property
Vector2
get
direction
A unit vector representing the direction of the line segment.
Implementation
Vector2 get direction => (to - from)..normalize();
A unit vector representing the direction of the line segment.
Vector2 get direction => (to - from)..normalize();