17template <
typename RealType>
44 Swap(Result.Min, Result.Max);
51 return (
Min +
Max) * (RealType)0.5;
56 return (
Max -
Min)*(RealType).5;
160 return (1 - T) *
Min + (T)*
Max;
245template <
typename RealType>
276 template<
typename OtherRealType>
302 for (
int i = 1; i < 8; ++i)
320 for (
int i = 1; i < 8; ++i)
348 template<
typename OutRealType>
355 template<
typename InRealType>
399 template<
typename Po
intFunc>
405 Result.Contain(GetPoint(
Index));
413 template<
typename EnumerableIntType,
typename Po
intFunc>
419 Result.Contain(GetPoint(
Index));
435 return (
Max -
Min) * (RealType).5;
516 if (Intersection.
Height() <= 0 || Intersection.
Width() <= 0 || Intersection.
Depth() <= 0)
635template <
typename RealType>
651 template<
typename OtherRealType>
685 template<
typename OutRealType>
692 template<
typename InRealType>
722 return (
Max -
Min) * (RealType).5;
810 if (Intersection.
Height() <= 0 || Intersection.
Width() <= 0)
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition ArrayView.h:139
Definition AndroidPlatformMisc.h:14
Definition MathUtil.h:150
static RealType Max(const RealType A, const RealType B)
Definition MathUtil.h:246
static RealType Sqrt(const RealType Value)
Definition MathUtil.h:342
static RealType Abs(const RealType Value)
Definition MathUtil.h:215
static RealType Min(const RealType A, const RealType B)
Definition MathUtil.h:271
TInterval1< float > FInterval1f
Definition BoxTypes.h:241
TAxisAlignedBox3< double > FAxisAlignedBox3d
Definition BoxTypes.h:885
TAxisAlignedBox2< float > FAxisAlignedBox2f
Definition BoxTypes.h:882
TAxisAlignedBox3< float > FAxisAlignedBox3f
Definition BoxTypes.h:884
TInterval1< double > FInterval1d
Definition BoxTypes.h:242
TAxisAlignedBox2< double > FAxisAlignedBox2d
Definition BoxTypes.h:883
Definition AdvancedWidgetsModule.cpp:13
U16 Index
Definition radfft.cpp:71
static constexpr UE_FORCEINLINE_HINT T Clamp(const T X, const T MinValue, const T MaxValue)
Definition UnrealMathUtility.h:592
Definition NumericLimits.h:41
Definition BoxTypes.h:637
bool IsEmpty() const
Definition BoxTypes.h:862
RealType Area() const
Definition BoxTypes.h:837
TAxisAlignedBox2(RealType Width, RealType Height)
Definition BoxTypes.h:662
TAxisAlignedBox2(const TArray< TVector2< RealType > > &Pts)
Definition BoxTypes.h:667
TAxisAlignedBox2(RealType SquareSize)
Definition BoxTypes.h:658
RealType DistanceSquared(const TVector2< RealType > &V) const
Definition BoxTypes.h:820
RealType MaxDim() const
Definition BoxTypes.h:852
TVector2< RealType > Max
Definition BoxTypes.h:639
void Expand(RealType Radius)
Definition BoxTypes.h:867
RealType Perimeter() const
Definition BoxTypes.h:842
bool Contains(const TVector2< RealType > &V) const
Definition BoxTypes.h:782
RealType MinDim() const
Definition BoxTypes.h:857
RealType Width() const
Definition BoxTypes.h:827
void Contain(const TArray< TVector2< RealType > > &Pts)
Definition BoxTypes.h:766
TAxisAlignedBox2()
Definition BoxTypes.h:641
void Contain(const TVector2< RealType > &V)
Definition BoxTypes.h:738
TAxisAlignedBox2< RealType > Intersect(const TAxisAlignedBox2< RealType > &Box) const
Definition BoxTypes.h:805
bool Contains(const TAxisAlignedBox2< RealType > &Box) const
Definition BoxTypes.h:787
TVector2< RealType > GetCorner(int Index) const
Definition BoxTypes.h:730
void Contain(TArrayView< const TVector2< RealType > > Pts)
Definition BoxTypes.h:774
RealType DiagonalLength() const
Definition BoxTypes.h:847
TVector2< RealType > Min
Definition BoxTypes.h:638
TVector2< RealType > Center() const
Definition BoxTypes.h:713
TAxisAlignedBox2(const TAxisAlignedBox2< OtherRealType > &OtherBox)
Definition BoxTypes.h:652
void Contain(const TAxisAlignedBox2< RealType > &Other)
Definition BoxTypes.h:758
TAxisAlignedBox2(TArrayView< const TVector2< RealType > > Pts)
Definition BoxTypes.h:673
RealType Height() const
Definition BoxTypes.h:832
void Expand(const TVector2< RealType > &ExpandByVec)
Definition BoxTypes.h:875
TVector< RealType > Clamp(const TVector2< RealType > &V)
Definition BoxTypes.h:792
static TAxisAlignedBox2< RealType > Empty()
Definition BoxTypes.h:706
TAxisAlignedBox2(const TVector2< RealType > &Center, RealType HalfWidth)
Definition BoxTypes.h:679
bool Intersects(const TAxisAlignedBox2< RealType > &Box) const
Definition BoxTypes.h:800
TVector2< RealType > Extents() const
Definition BoxTypes.h:720
TAxisAlignedBox2(const TVector2< RealType > &Min, const TVector2< RealType > &Max)
Definition BoxTypes.h:646
TAxisAlignedBox2(const TBox2< InRealType > &Box)
Definition BoxTypes.h:693
Definition BoxTypes.h:247
static TAxisAlignedBox3< RealType > Empty()
Definition BoxTypes.h:382
static TAxisAlignedBox3< RealType > Infinite()
Definition BoxTypes.h:389
TAxisAlignedBox3(const TVector< RealType > &A, const TVector< RealType > &B, const TVector< RealType > &C)
Definition BoxTypes.h:262
TAxisAlignedBox3(const TVector< RealType > &Center, RealType HalfWidth)
Definition BoxTypes.h:283
bool operator!=(const TAxisAlignedBox3< RealType > &Other) const
Definition BoxTypes.h:342
RealType Depth() const
Definition BoxTypes.h:578
RealType SurfaceArea() const
Definition BoxTypes.h:588
RealType MinDim() const
Definition BoxTypes.h:603
TVector< RealType > GetCorner(int Index) const
Definition BoxTypes.h:373
RealType Width() const
Definition BoxTypes.h:568
bool Contains(const TVector< RealType > &V) const
Definition BoxTypes.h:492
TAxisAlignedBox3(const TBox< InRealType > &Box)
Definition BoxTypes.h:356
bool operator==(const TAxisAlignedBox3< RealType > &Other) const
Definition BoxTypes.h:338
RealType DistanceSquared(const TVector< RealType > &V) const
Definition BoxTypes.h:531
void Contain(TArrayView< const TVector< RealType > > Pts)
Definition BoxTypes.h:476
TAxisAlignedBox3(const TArray< TVector< RealType > > &Pts)
Definition BoxTypes.h:332
void Contain(const TVector< RealType > &V)
Definition BoxTypes.h:438
RealType Dimension(int32 Index) const
Definition BoxTypes.h:563
static TAxisAlignedBox3< RealType > MakeBoundsFromIndices(EnumerableIntType IndexEnumerable, PointFunc GetPoint)
Definition BoxTypes.h:414
static TAxisAlignedBox3< RealType > MakeBoundsFromIndices(int32 MaxIndex, PointFunc GetPoint)
Definition BoxTypes.h:400
void Expand(RealType Radius)
Definition BoxTypes.h:618
bool Contains(const TAxisAlignedBox3< RealType > &Box) const
Definition BoxTypes.h:497
void Expand(const TVector< RealType > &ExpandByVec)
Definition BoxTypes.h:628
TVector< RealType > Max
Definition BoxTypes.h:249
bool IsEmpty() const
Definition BoxTypes.h:613
TVector< RealType > Diagonal() const
Definition BoxTypes.h:608
TAxisAlignedBox3()
Definition BoxTypes.h:251
RealType MaxDim() const
Definition BoxTypes.h:598
TAxisAlignedBox3(const TAxisAlignedBox3 &Box, const FTransformSRT3d &Transform)
Definition BoxTypes.h:308
RealType DiagonalLength() const
Definition BoxTypes.h:593
RealType Height() const
Definition BoxTypes.h:573
TVector< RealType > Extents() const
Definition BoxTypes.h:433
TAxisAlignedBox3(const TVector< RealType > &Min, const TVector< RealType > &Max)
Definition BoxTypes.h:256
TVector< RealType > Center() const
Definition BoxTypes.h:425
TAxisAlignedBox3< RealType > Intersect(const TAxisAlignedBox3< RealType > &Box) const
Definition BoxTypes.h:511
TVector< RealType > Min
Definition BoxTypes.h:248
RealType DistanceSquared(const TAxisAlignedBox3< RealType > &Box) const
Definition BoxTypes.h:539
bool Intersects(TAxisAlignedBox3 Box) const
Definition BoxTypes.h:526
TAxisAlignedBox3(TArrayView< const TVector< RealType > > Pts)
Definition BoxTypes.h:326
void Contain(const TArray< TVector< RealType > > &Pts)
Definition BoxTypes.h:484
TAxisAlignedBox3(const TAxisAlignedBox3< OtherRealType > &OtherBox)
Definition BoxTypes.h:277
TVector< RealType > Clamp(const TVector< RealType > &V) const
Definition BoxTypes.h:502
TAxisAlignedBox3(const TAxisAlignedBox3 &Box, const TFunction< TVector< RealType >(const TVector< RealType > &)> TransformF)
Definition BoxTypes.h:290
void Contain(const TAxisAlignedBox3< RealType > &Other)
Definition BoxTypes.h:466
RealType Volume() const
Definition BoxTypes.h:583
RealType MaxAbsExtrema() const
Definition BoxTypes.h:63
void Expand(RealType Radius)
Definition BoxTypes.h:234
RealType Min
Definition BoxTypes.h:20
TInterval1(const RealType &Min, const RealType &Max)
Definition BoxTypes.h:28
RealType GetT(RealType Value) const
Definition BoxTypes.h:166
void Contain(const RealType &V)
Definition BoxTypes.h:68
TInterval1< RealType > IntersectionWith(const TInterval1< RealType > &O) const
Definition BoxTypes.h:138
RealType Max
Definition BoxTypes.h:21
bool IsEmpty() const
Definition BoxTypes.h:229
RealType GetUnclampedT(RealType Value) const
Definition BoxTypes.h:185
void Contain(const TInterval1< RealType > &O)
Definition BoxTypes.h:80
RealType Interpolate(RealType T) const
Definition BoxTypes.h:158
TInterval1()
Definition BoxTypes.h:23
TInterval1 operator*(RealType f) const
Definition BoxTypes.h:224
TInterval1 operator-(TInterval1 V) const
Definition BoxTypes.h:209
RealType Extent() const
Definition BoxTypes.h:54
RealType Length() const
Definition BoxTypes.h:58
static TInterval1< RealType > MakeFromUnordered(const RealType &A, const RealType &B)
Definition BoxTypes.h:39
TInterval1 operator+(RealType f) const
Definition BoxTypes.h:214
RealType Center() const
Definition BoxTypes.h:49
TInterval1 operator-(RealType f) const
Definition BoxTypes.h:219
RealType Dist(const TInterval1< RealType > &O) const
Definition BoxTypes.h:122
bool Overlaps(const TInterval1< RealType > &O) const
Definition BoxTypes.h:102
static TInterval1< RealType > Empty()
Definition BoxTypes.h:34
bool Contains(const TInterval1< RealType > &O) const
Definition BoxTypes.h:97
void Set(TInterval1 O)
Definition BoxTypes.h:197
bool Contains(RealType D) const
Definition BoxTypes.h:92
RealType Clamp(RealType f) const
Definition BoxTypes.h:150
RealType SquaredDist(const TInterval1< RealType > &O) const
Definition BoxTypes.h:107
void Set(RealType A, RealType B)
Definition BoxTypes.h:203
T Y
Definition Vector2D.h:52
T X
Definition Vector2D.h:49
T Z
Definition Vector.h:68
T Y
Definition Vector.h:65
static TVector< T > Max(const TVector< T > &A, const TVector< T > &B)
Definition Vector.h:2506
static TVector< T > Min(const TVector< T > &A, const TVector< T > &B)
Definition Vector.h:2496
T X
Definition Vector.h:62