ProtoFlux:Ray To Line Intersection Distance

From Resonite Wiki
Revision as of 00:13, 3 July 2024 by AmasterAmaster (talk | contribs) (Fixed category for this node.)
Ray To Line Intersection Distance
Origin
Distance
Direction
Intersects
LinePoint0
LinePoint1
Geometry 2D

The Ray To Line Intersection Distance node takes in ray parameters and line parameters and calculates the distance from the ray to the line, and if it intersects, then return the distance.

Inputs

Origin (float2)

Origin of the ray.

Direction (float2)

Direction of the ray.

LinePoint0 (float2)

First point of the line segment.

LinePoint1 (float2)

Second point of the line segment.

Outputs

Distance (float)

Returns the distance of this intersection from the ray.

Intersects (bool)

Returns if this ray is intersecting this line.