hm_intersectlineline

Find the intersection point of two lines.

Syntax

hm_intersectlineline s1x0 s1y0 s1z0 s1x1 s1y1 s1z1

s2x0 s2y0 s2z0 s2x1 s2y1 s2z1

Type

HyperMesh Tcl Query Command

Description

s1x0 s1y0 s1z0

s1x1 s1y1 s1z1

s2x0 s2y0 s2z0

s2x1 s2y1 s2z1

The four 3D points, which are the start and end points of two segments.

Return value: x y z

Example

hm_intersectlineline   0.0 0.0 0.0  2.0 0.0 0.0  -1.0 0.0  0.0 1.0 0.0 0.0 

Result: 1.0 0.0 0.0

Errors

None.