#include <SegmentTypes.h>
◆ TSegment3() [1/3]
◆ TSegment3() [2/3]
Construct a Segment from two Points
◆ TSegment3() [3/3]
Construct a segment from a Center Point, normalized Direction, and scalar Extent
◆ ConvertToUnitRange()
- Parameters
-
| DistanceParameter | distance on the segment from the segment Origin in range [-Extent, Extent] |
- Returns
- unit value in range [0,1]
◆ DistanceSquared() [1/2]
- Returns
- minimum squared distance from Point to segment
◆ DistanceSquared() [2/2]
- Parameters
-
| Point | query point |
| DistParameterOut | calculated distance parameter in range [-Extent,Extent] |
- Returns
- minimum squared distance from Point to Segment
◆ EndPoint()
- Returns
- end point of segment
◆ GetBounds() [1/2]
- Returns
- axis-aligned bounding box of line segment
◆ GetBounds() [2/2]
- Returns
- axis-aligned bounding box of line segment thickened to given SegmentRadius
◆ GetPointFromIndex()
- Returns
- first (i == 0) or second (i == 1) endpoint of the Segment
◆ Length()
- Returns
- the Length of the segment
◆ NearestPoint()
- Returns
- nearest point on segment to QueryPoint
◆ PointAt()
- Returns
- point on segment at given (signed) Distance from the segment Origin
◆ PointBetween()
- Parameters
-
| UnitParameter | value in range [0,1] |
- Returns
- point on segment at that linearly interpolates between start and end based on Unit Parameter
◆ Project()
- Returns
- scalar projection of QueryPoint onto line of Segment (not clamped to Extents)
◆ ProjectUnitRange()
- Returns
- scalar projection of QueryPoint onto line of Segment, mapped to [0,1] range along segment
◆ Reverse()
◆ SetEndPoint()
Update the Segment with a new end point
◆ SetStartPoint()
Update the Segment with a new start point
◆ StartPoint()
- Returns
- start point of segment
◆ update_from_endpoints()
◆ Center
◆ Direction
normalized Direction vector of segment
◆ Extent
Extent of segment, which is half the total length
The documentation for this struct was generated from the following file: