PF2d::Ray(T)
Inherits Struct < Value < Object
Represents an infinite line by position pos and direction dir dir should be normalized
Constructors
new(pos : T, dir : T)
SourceInstance methods
closest_point(p)
Sourcedir
Sourcedir=(dir : T)
Sourcedistance_to(p)
Sourceintersect?(other)
Sourcenormal
Sourcepos
Sourcepos=(pos : T)
Sourceproject(x, y)
Return the projection of the point p onto this ray forms a right triangle with the ray and the line between p and the projection
project(p)
Return the projection of the point p onto this ray forms a right triangle with the ray and the line between p and the projection
to_line(t : Float64)
SourceMacros
[](*args)
Source