Navigation
API > API/Runtime > API/Runtime/CADKernel > API/Runtime/CADKernel/Math
References
| Module | CADKernel |
| Header | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Math/Geometry.h |
| Include | #include "Math/Geometry.h" |
namespace UE
{
namespace CADKernel
{
template<class PointType>
double UE::CADKernel::SquareDistanceOfPointToSegment
(
const PointType & Point,
const PointType & SegmentPoint1,
const PointType & SegmentPoint2
)
}
}
the distance between the point and the segment. If the projection of the point on the segment is not inside it, return the distance of the point to nearest the segment extremity