Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TPolygon2
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T DistanceSquared
(
const TVector2< T >& QueryPoint |
Calculate the squared distance from a point to the polygon | Polygon2.h | |
T DistanceSquared
(
const TVector2< T >& QueryPoint, |
Calculate the squared distance from a point to the polygon | Polygon2.h |
DistanceSquared(const TVector2< T > &)
Description
Calculate the squared distance from a point to the polygon
| Name | DistanceSquared |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Polygon2.h |
| Include Path | #include "Polygon2.h" |
T DistanceSquared
(
const TVector2 < T > & QueryPoint
) const
squared distance to the polygon
Parameters
| Name | Remarks |
|---|---|
| QueryPoint | the query point |
DistanceSquared(const TVector2< T > &, int &, T &)
Description
Calculate the squared distance from a point to the polygon
| Name | DistanceSquared |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Polygon2.h |
| Include Path | #include "Polygon2.h" |
T DistanceSquared
(
const TVector2 < T > & QueryPoint,
int & NearestSegIndexOut,
T & NearestSegParamOut
) const
squared distance to the polygon
Parameters
| Name | Remarks |
|---|---|
| QueryPoint | the query point |
| NearestSegIndexOut | The index of the nearest segment |
| NearestSegParamOut | the parameter value of the nearest point on the segment |