Navigation
API > API/Plugins > API/Plugins/GeometryScriptingCore > API/Plugins/GeometryScriptingCore/GeometryScript > API/Plugins/GeometryScriptingCore/GeometryScript/UGeometryScriptL-_31
References
| Module | GeometryScriptingCore |
| Header | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Public/GeometryScript/ShapeFunctions.h |
| Include | #include "GeometryScript/ShapeFunctions.h" |
| Source | /Engine/Plugins/Experimental/GeometryScripting/Source/GeometryScriptingCore/Private/ShapeFunctions.cpp |
static double GetRayLineClosestPoint
&40;
FRay Ray,
FVector LineOrigin,
FVector LineDirection,
double & RayParameter,
FVector & RayPoint,
double & LineParameter,
FVector & LinePoint
&41;
Remarks
Compute the pair of closest points on a 3D Ray and Line. The Line is defined by an Origin and Direction (ie same as a Ray) but extends infinitely in both directions. the minimum distance between the Ray and Line, ie between RayPoint and LinePoint
Parameters
| Name | Description |
|---|---|
| RayParameter | the Ray Parameter of the closest point on the Ray (range 0, inf) |
| RayPoint | the point on the Ray corresponding to RayParameter |
| LineParameter | the Line parameter of the closest point on the Line (range -inf, inf) |
| LinePoint | the point on the Line corresponding to LineParameter |