![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LineTypes.h>
Public Member Functions | |
| TLine2 () | |
| TLine2 (const TVector2< T > &OriginIn, const TVector2< T > &DirectionIn) | |
| TVector2< T > | PointAt (T LineParameter) const |
| T | Project (const TVector2< T > &QueryPoint) const |
| T | DistanceSquared (const TVector2< T > &QueryPoint) const |
| TVector2< T > | NearestPoint (const TVector2< T > &QueryPoint) const |
| int | WhichSide (const TVector2< T > &QueryPoint, T OnLineTolerance=0) const |
| bool | IntersectionPoint (const TLine2< T > &OtherLine, TVector2< T > &IntersectionPointOut, T ParallelDotTolerance=TMathUtil< T >::ZeroTolerance) const |
Static Public Member Functions | |
| static TLine2< T > | FromPoints (const TVector2< T > &Point0, const TVector2< T > &Point1) |
Public Attributes | |
| TVector2< T > | Origin |
| TVector2< T > | Direction |
TLine2 is a two-dimensional infinite line. The line is stored in (Center,Direction) form.
|
inline |
Construct default line along X axis
|
inline |
Construct line with given Origin and Direction
|
inline |
|
inlinestatic |
|
inline |
Calculate intersection point between this line and another one
| OtherLine | line to test against |
| IntersectionPointOut | intersection point is stored here, if found |
| ParallelDotTolerance | tolerance used to determine if lines are parallel (and hence cannot intersect) |
|
inline |
|
inline |
|
inline |
|
inline |
| TVector2<T> UE::Geometry::TLine2< T >::Direction |
Direction of Line, Normalized
| TVector2<T> UE::Geometry::TLine2< T >::Origin |
Origin / Center Point of Line