![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <Polyline.h>
Classes | |
| class | SegmentEnumerable |
| class | SegmentIterator |
Protected Types | |
| typedef TPolylinePolicy< T, D >::VectorType | VectorType |
| typedef TPolylinePolicy< T, D >::SegmentType | SegmentType |
| typedef TPolylinePolicy< T, D >::BoxType | BoxType |
Protected Attributes | |
| TArray< VectorType > | Vertices |
Friends | |
| class | SegmentIterator |
TPolyline represents a dimensional independent polyline stored as a list of Vertices.
|
protected |
|
protected |
|
protected |
|
inline |
|
inline |
Construct polyline with given list of vertices
|
inline |
Construct a single-segment polyline
|
inline |
Add a vertex to the polyline
|
inline |
Add a list of Vertices to the polyline
|
inline |
Add a list of Vertices to the polyline
|
inline |
|
inline |
Discard all vertices of polyline
|
inline |
Calculate the squared distance from a point to the polyline
| QueryPoint | the query point |
|
inline |
Calculate the squared distance from a point to the polyline
| QueryPoint | the query point |
| NearestSegIndexOut | The index of the nearest segment |
| NearestSegParamOut | the parameter value of the nearest point on the segment |
|
inline |
|
inline |
|
inline |
Compute a point on the polyline based on its distance from the first vertex
|
inline |
Compute a point on the polyline based on its distance from the last vertex
|
inline |
|
inline |
| SegmentIndex | index of first vertex of the edge |
| SegmentParam | parameter in range [-Extent,Extent] along segment |
|
inline |
| SegmentIndex | index of first vertex of the edge |
| SegmentParam | parameter in range [0,1] along segment |
|
inline |
Get the tangent vector at a vertex of the polyline, which is the normalized vector from the previous vertex to the next vertex
|
inline |
|
inline |
|
inline |
Get the vertex at a given index
|
inline |
Get the vertex at a given index
|
inline |
Remove a vertex of the polyline (existing Vertices are shifted)
|
inline |
Reverse the order of the Vertices in the polyline (ie switch between Clockwise and CounterClockwise)
|
inline |
|
inline |
|
inline |
|
inline |
Set vertex at given index to a new Position
|
inline |
Replace the list of Vertices with a new list
|
inline |
Simplify the Polyline to reduce the vertex count
| ClusterTolerance | Vertices closer than this distance will be merged into a single vertex |
| LineDeviationTolerance | Vertices are allowed to deviate this much from the polylines |
|
inline |
Produce a new polyline that is smoother than this one
|
inline |
|
inline |
|
friend |
|
protected |
The list of vertices of the polyline