Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/SegmentTypes.h |
| Include | #include "SegmentTypes.h" |
Syntax
template<typename T>
struct TSegment3
Remarks
3D Line Segment stored as Center point, normalized Direction vector, and scalar Extent
Variables
| Type | Name | Description | |
|---|---|---|---|
| TVector< T > | Center | Center point of segment | |
| TVector< T > | Direction | Normalized Direction vector of segment | |
| T | Extent | Extent of segment, which is half the total length |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TSegment3 () |
|||
| Construct a Segment from two Points | |||
| Construct a segment from a Center Point, normalized Direction, and scalar Extent |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T | DistanceSquared
(
const TVector< T >& Point, |
||
| T | DistanceSquared
(
const TVector< T >& Point |
||
| TVector< T > | EndPoint () |
||
| TAxisAlignedBox3< T > | GetBounds
(
T SegmentRadius |
||
| TAxisAlignedBox3< T > | GetBounds () |
||
| TVector< T > | GetPointFromIndex
(
int i |
||
| T | Length () |
||
| TVector< T > | NearestPoint
(
const TVector< T >& QueryPoint |
||
| TVector< T > | PointAt
(
T DistanceParameter |
||
| TVector< T > | PointBetween
(
T UnitParameter |
||
| T | |||
| T | ProjectUnitRange
(
const TVector< T >& QueryPoint |
||
| void | Reverse () |
Reverse the segment | |
| void | SetEndPoint
(
const TVector< T >& Point |
Update the Segment with a new end point | |
| void | SetStartPoint
(
const TVector< T >& Point |
Update the Segment with a new start point | |
| TVector< T > | StartPoint () |
||
| void | update_from_endpoints
(
const TVector< T >& p0, |
Update segment based on new endpoints |