pointAt method
- double t
Get a point along the ray at parameter t
t = 0 returns origin, t > 0 moves along the ray direction.
Implementation
Point pointAt(double t) {
final nd = normalizedDirection;
return Point(origin.x + nd.x * t, origin.y + nd.y * t);
}