Gives the point at a certain length along the ray.
Vector2 point(double length, {Vector2? out}) { return ((out?..setFrom(origin)) ?? origin.clone()) ..addScaled(direction, length); }