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