Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Intersection
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Intersection/Intersector1.h |
| Include | #include "Intersection/Intersector1.h" |
Syntax
template<typename RealType>
class TIntersector1
Remarks
TIntersector1 computes the intersection of one-dimensional intervals [u0,u1] and [v0,v1]. The end points of the input intervals must be ordered u0 <= u1 and v0 <= v1. Infinite and degenerate intervals are allowed.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int | NumIntersections | Number of intersections found. | |
| TInterval1< RealType > | U | First interval | |
| TInterval1< RealType > | V | Second interval |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TIntersector1
(
const TInterval1< RealType >& u, |
|||
TIntersector1
(
RealType u0, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Find () |
Calculate the intersection interval | |
| RealType | GetIntersection
(
int i |
||
| bool | Test () |
Fast check to see if intervals intersect, but does not calculate intersection interval |