Finds the intersection point(s) of the ray and a circle. Returns tuple doubleresult2d(first, second).
Finds the intersection point of the ray and a plane disk where center - the center of the disk normal - a vector perpendicular to the disk's plane radius - the disk's radius Returns tuple result3d(intersects, point, distance, backface).
Finds the intersection point of the ray and a line defined by 2 points. Returns tuple result2d(intersects, point, distance).
Finds the intersection point of the ray and a plane where point - a point on the plane normal - a vector perpendicular to the plane Returns tuple result3d(intersects, point, distance, backface).
Finds the intersection point of the ray and another ray. Returns tuple result2d(intersects, point, distance).
Finds the intersection point of the ray and a line segment defined by 2 points. Returns tuple result2d(intersects, point, distance).
Finds the intersection point(s) of the ray and a sphere. Returns tuple doubleresult3d(first, second).
Finds the intersection point of the ray and a triangle in 3D space defined by 3 points. Returns tuple result3d(intersects, point, distance, backface) where 'backface' depends on the order of the given points.
Double 2D intersection result. 'first' is nearest to the ray's origin.
Double 3D intersection result. 'first' is nearest to the ray's origin.
Projects the point onto a ray. Returns tuple result2d(intersects, point, distance).
Projects the point onto a ray. Returns tuple result3d(intersects, point, distance, backface) where 'backface' is always false.
An infinite 2D ray origin - the point which the ray comes from direction - directional vector
An infinite 3D ray origin - the point which the ray comes from direction - directional vector
2D intersection result intersects - 'true' if the intersection point exists point - the intersection point or ZERO2 distance - distance between the ray's origin and the intersection point
3D intersection result intersects - 'true' if the intersection point exists point - the intersection point or ZERO2 distance - distance between the ray's origin and the intersection point backface - `true` if the surface at the intersection point is faced away from the ray's origin