struct
PF2d::Ray(T)
- PF2d::Ray(T)
- Struct
- Value
- Object
Overview
Represents an infinite line by position pos and direction dir dir should be normalized
Defined in:
pf2d/ray.crConstructors
Macro Summary
Instance Method Summary
-
#at(t : Float)
Return the point at distance t along the ray
- #closest_point(p)
- #dir : T
- #dir=(dir : T)
- #distance_to(p)
- #intersect?(other)
- #normal
- #pos : T
- #pos=(pos : T)
-
#project(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)
Constructor Detail
Macro Detail
Instance Method Detail
def project(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
def 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