Function VectorMath.SegmentIntersectionPointXZ

SegmentIntersectionPointXZ (Vector3 start1, Vector3 end1, Vector3 start2, Vector3 end2, out bool intersects)

Returns the intersection point between the two line segments in XZ space.

Public Static
Vector3 SegmentIntersectionPointXZ (

Vector3

start1

Vector3

end1

Vector3

start2

Vector3

end2

out bool

intersects

)

Returns the intersection point between the two line segments in XZ space.

Lines are NOT treated as infinite. start1 is returned if the line segments do not intersect The point will be returned along the line [start1, end1] (this matters only for the y coordinate).