ProtoFlux:Ray To Line Intersection Distance: Difference between revisions

From Resonite Wiki
Created a page for the Ray To Line Intersection Distance node.
 
Fixed category for this node.
Line 46: Line 46:
Returns if this ray is intersecting this line.
Returns if this ray is intersecting this line.


[[Category:ProtoFlux:Math:Geometry3D]]
[[Category:ProtoFlux:Math:Geometry2D]]

Revision as of 00:13, 3 July 2024

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.