Function VectorMath.RaySegmentIntersectXZ

RaySegmentIntersectXZ (Int3 start1, Int3 end1, Int3 start2, Int3 end2)

Returns if the ray (start1, end1) intersects the segment (start2, end2).

Public Static
bool RaySegmentIntersectXZ (

Int3

start1

Int3

end1

Int3

start2

Int3

end2

)

Returns if the ray (start1, end1) intersects the segment (start2, end2).

false is returned if the lines are parallel. Only the XZ coordinates are used.