UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlopeUtils.h File Reference
#include "Core/Types.h"
#include "Math/Point.h"
#include "Algo/AllOf.h"

Go to the source code of this file.

Namespaces

namespace  UE
 
namespace  UE::CADKernel
 
namespace  UE::CADKernel::Slope
 

Functions

double UE::CADKernel::TransformIntoOrientedSlope (double Slope)
 
double UE::CADKernel::TransformIntoClockwiseSlope (double Slope)
 
double UE::CADKernel::TransformIntoUnorientedSlope (double Slope)
 
double UE::CADKernel::TransformIntoPositiveSlope (double Slope)
 
double UE::CADKernel::TransformIntoSlopeRelativeToReferenceAxis (double Slope)
 
double UE::CADKernel::SwapSlopeOrientation (double Slope)
 
double UE::CADKernel::ComputeSlope (const FVector2d &StartPoint, const FVector2d &EndPoint)
 
double UE::CADKernel::ComputeSlope (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceSlope)
 
double UE::CADKernel::ComputeSlope (const FVector2d &StartPoint, const FVector2d &EndPoint1, const FVector2d &EndPoint2)
 
double UE::CADKernel::ComputePositiveSlope (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceSlope)
 
double UE::CADKernel::ComputePositiveSlope (const FVector2d &StartPoint, const FVector2d &EndPoint1, const FVector2d &EndPoint2)
 
double UE::CADKernel::ClockwiseSlope (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceSlope)
 
double UE::CADKernel::CounterClockwiseSlope (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceSlope)
 
double UE::CADKernel::ComputeOrientedSlope (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceSlope)
 
double UE::CADKernel::ComputeOrientedSlope (const FVector2d &StartPoint, const FVector2d &EndPoint1, const FVector2d &EndPoint2)
 
double UE::CADKernel::ComputeUnorientedSlope (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceSlope)
 
double UE::CADKernel::ComputeSlopeRelativeToNearestAxis (const FVector2d &StartPoint, const FVector2d &EndPoint)
 
double UE::CADKernel::ComputeSlopeRelativeToReferenceAxis (const FVector2d &StartPoint, const FVector2d &EndPoint, double ReferenceAxisSlope)
 
double UE::CADKernel::ComputeUnorientedSlope (const FVector2d &StartPoint, const FVector2d &EndPoint1, const FVector2d &EndPoint2)
 
bool UE::CADKernel::IsPointPInsideSectorABC (const FVector2d &PointA, const FVector2d &PointB, const FVector2d &PointC, const FVector2d &PointP, const double FlatAngle)
 
bool UE::CADKernel::ArePointsInsideSectorABC (const FVector2d &PointA, const FVector2d &PointB, const FVector2d &PointC, const TArray< const FVector2d * > &Points, const double FlatAngle=-DOUBLE_SMALL_NUMBER)
 
FVector2d UE::CADKernel::SlopeToVector (const double Slope)
 

Variables

constexpr double UE::CADKernel::Slope::NullSlope = 0.
 
constexpr double UE::CADKernel::Slope::RightSlope = 2.
 
constexpr double UE::CADKernel::Slope::HalfPiSlope = 2.
 
constexpr double UE::CADKernel::Slope::NinetySlope = 2.
 
constexpr double UE::CADKernel::Slope::ThreeRightSlope = 6.
 
constexpr double UE::CADKernel::Slope::MinusRightSlope = -2.
 
constexpr double UE::CADKernel::Slope::PiSlope = 4.
 
constexpr double UE::CADKernel::Slope::TwoPiSlope = 8.
 
constexpr double UE::CADKernel::Slope::ThirdPiSlope = 1.422649730810374235490851219498
 
constexpr double UE::CADKernel::Slope::SixtySlope = 1.422649730810374235490851219498
 
constexpr double UE::CADKernel::Slope::QuaterPiSlope = 1
 
constexpr double UE::CADKernel::Slope::FortyFiveSlope = 0.57735026918962576450914878050196
 
constexpr double UE::CADKernel::Slope::SixthPiSlope = 0.57735026918962576450914878050196
 
constexpr double UE::CADKernel::Slope::ThirtySlope = 0.57735026918962576450914878050196
 
constexpr double UE::CADKernel::Slope::ThreeQuaterPiSlope = 3
 
constexpr double UE::CADKernel::Slope::OneDegree = 0.01745506492821758576512889521973
 
constexpr double UE::CADKernel::Slope::TwoDegree = 0.03492076949174773050040262577373
 
constexpr double UE::CADKernel::Slope::FiveDegree = 0.08748866352592400522201866943496
 
constexpr double UE::CADKernel::Slope::TenDegree = 0.17632698070846497347109038686862
 
constexpr double UE::CADKernel::Slope::FifteenDegree = 0.26794919243112270647255365849413
 
constexpr double UE::CADKernel::Slope::TwentyDegree = 0.36397023426620236135104788277683
 
constexpr double UE::CADKernel::Slope::TwentyFiveDegree = 0.46630765815499859283000619479956
 
constexpr double UE::CADKernel::Slope::Epsilon = 0.001