Navigation
API > API/Runtime > API/Runtime/GeometryCore
Ported from WildMagic5
RealType IntervalThreshold The intersection testing uses the center-extent form for line segments. If you start with endpoints (Vector2
RealType DotThreshold The computation for determining whether the linear components are parallel might contain small floating-point round-off errors. The default threshold is TMathUtil
The intersection set: Let q = Quantity. The cases are
q = 0: The segments do not intersect. Type is Empty
q = 1: The segments intersect in a single point. Type is Point Intersection point is Point0.
q = 2: The segments are collinear and intersect in a segment. Type is Segment. Points are Point0 and Point1 Calculate intersection between two 2D line segments
| Name | TIntrSegment2Segment2 |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Intersection/IntrSegment2Segment2.h |
| Include Path | #include "Intersection/IntrSegment2Segment2.h" |
Syntax
template<typename RealType>
class TIntrSegment2Segment2
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Intersection/IntrSegment2Segment2.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Parameter0 | RealType | Intersection/IntrSegment2Segment2.h | ||
| Parameter1 | RealType | Intersection/IntrSegment2Segment2.h | ||
| Point0 | TVector2< RealType > | These values are all on segment 1, unlike many other tests!! | Intersection/IntrSegment2Segment2.h | |
| Point1 | TVector2< RealType > | Intersection/IntrSegment2Segment2.h | ||
| Quantity | int | Outputs | Intersection/IntrSegment2Segment2.h | |
| Result | EIntersectionResult | Intersection/IntrSegment2Segment2.h | ||
| Type | EIntersectionType | Intersection/IntrSegment2Segment2.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TIntrSegment2Segment2 & Compute() |
Intersection/IntrSegment2Segment2.h | ||
bool Find() |
Note: This implementation is identical to TSegment2::Intersects but also computes the intersection geometry. | Intersection/IntrSegment2Segment2.h | |
RealType GetDotThreshold() |
Intersection/IntrSegment2Segment2.h | ||
RealType GetIntervalThreshold() |
Intersection/IntrSegment2Segment2.h | ||
const TSegment2< RealType > & GetSegment1() |
Intersection/IntrSegment2Segment2.h | ||
const TSegment2< RealType > & GetSegment2() |
Intersection/IntrSegment2Segment2.h | ||
bool IsSimpleIntersection() |
Intersection/IntrSegment2Segment2.h | ||
void SetDotThreshold
(
RealType Value |
Intersection/IntrSegment2Segment2.h | ||
void SetIntervalThreshold
(
RealType Value |
Intersection/IntrSegment2Segment2.h | ||
void SetSegment1
(
const TSegment2< RealType >& Value |
Intersection/IntrSegment2Segment2.h | ||
void SetSegment2
(
const TSegment2< RealType >& Value |
Intersection/IntrSegment2Segment2.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SanityCheck() |
Intersection/IntrSegment2Segment2.h |