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 GetRaySegmentClosestPoint
&40;
FRay Ray,
FVector SegStartPoint,
FVector SegEndPoint,
double & RayParameter,
FVector & RayPoint,
FVector & SegPoint
&41;
Remarks
Compute the pair of closest points on a 3D Ray and Line Segment The Line Segment is defined by its two Endpoints. the minimum distance between the Ray and Segment, ie between RayPoint and SegPoint
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 |
| SegPoint | the point on the Segment |