Intersection test between the ray and a given segment whithin a given tolerance (threshold)
the first point of the segment to test the intersection against
the second point of the segment to test the intersection against
the tolerance margin, if the ray doesn't intersect the segment but is close to the given threshold, the intersection is successful
the distance from the ray origin to the intersection point if there's intersection, or -1 if there's no intersection
Function will create a new transformed ray starting from origin and ending at the end point. Ray's length will be set, and ray will be transformed to the given world matrix.
The origin point
The end point
a matrix to transform the ray to. Default is the identity matrix.
Generated using TypeDoc