A line in space between two given vertices.
The starting point.
The ending point.
Extends or clips the segment so that it's ends lie on the boundary of the AABB.
AABB to extend/clip the segement.
See Extend, this works on the ending point.
AABB to extend/clip the ending point.
See Extend, this works on the starting point.
AABB to extend/clip the starting point.
Ray cast against this segment with another segment.
returns the hit fraction. You can use this to compute the contact point * p = (1 - lambda) * segment.p1 + lambda * segment.p2 *
Defines the begining and end point of the ray cast.
a number typically in the range [0,1].
True if there is an intersection, otherwise false.
Normal at the contact point. If there is no intersection, the normal is not set.
A line in space between two given vertices.