Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/SegmentTypes.h |
Include |
#include "SegmentTypes.h" |
template<typename T>
struct TSegment2
2D Line Segment stored as Center point, normalized Direction vector, and scalar Extent
Name | Description | |
---|---|---|
|
TSegment2() |
|
|
TSegment2 |
Construct a Segment from two Points |
|
TSegment2 |
Construct a segment from a Center Point, normalized Direction, and scalar Extent |
Name | Description | ||
---|---|---|---|
|
T |
DistanceSquared ( |
|
|
T |
DistanceSquared ( |
|
|
FVector2< T ... |
EndPoint() |
|
|
T |
FastDistanceSquared |
Calculate distance from QueryPoint to segment (StartPt,EndPt) |
|
FVector2< T ... |
GetPointFromIndex ( |
|
|
Intersects ( |
Test if this segment intersects with OtherSegment. |
|
|
T |
Length() |
|
|
FVector2< T ... |
NearestPoint ( |
|
|
FVector2< T ... |
PointAt ( |
|
|
FVector2< T ... |
PointBetween ( |
|
|
T |
Project ( |
|
|
T |
ProjectUnitRange ( |
|
|
Reverse() |
Reverse the segment |
|
|
SetEndPoint ( |
Update the Segment with a new end point |
|
|
SetStartPoint ( |
Update the Segment with a new start point |
|
|
FVector2< T ... |
StartPoint() |
|
|
update_from_endpoints |
Update segment based on new endpoints |
|
|
int |
WhichSide ( |
Determine which side of the segment the query point lies on |
|
int |
WhichSide |
Determine which side of the segment the query point lies on |