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: | [[Category:ProtoFlux:Math:Geometry2D]] |
Revision as of 00:13, 3 July 2024
Ray To Line Intersection Distance
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.