Navigation
API > API/Runtime > API/Runtime/GeometryCore
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/LineTypes.h |
| Include | #include "LineTypes.h" |
Syntax
template<typename T>
struct TLine2
Remarks
TLine2 is a two-dimensional infinite line. The line is stored in (Center,Direction) form.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TVector2< T > | Direction | Direction of Line, Normalized | |
| TVector2< T > | Origin | Origin / Center Point of Line |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TLine2 () |
Construct default line along X axis | ||
| Construct line with given Origin and Direction |
Functions
| Type | Name | Description | |
|---|---|---|---|
| T | DistanceSquared
(
const TVector2< T >& QueryPoint |
||
| TLine2< T > | FromPoints
(
const TVector2< T >& Point0, |
||
| bool | IntersectionPoint
(
const TLine2< T >& OtherLine, |
Calculate intersection point between this line and another one | |
| TVector2< T > | NearestPoint
(
const TVector2< T >& QueryPoint |
||
| TVector2< T > | PointAt
(
T LineParameter |
||
| T | |||
| int |