UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
GizmoMath.h File Reference
#include "BaseGizmos/GizmoInterfaces.h"
#include "CoreMinimal.h"
#include "Math/MathFwd.h"
#include "Math/Vector2D.h"

Go to the source code of this file.

Namespaces

namespace  GizmoMath
 

Functions

INTERACTIVETOOLSFRAMEWORK_API FVector GizmoMath::ProjectPointOntoLine (const FVector &Point, const FVector &LineOrigin, const FVector &LineDirection)
 
INTERACTIVETOOLSFRAMEWORK_API void GizmoMath::NearestPointOnLine (const FVector &LineOrigin, const FVector &LineDirection, const FVector &QueryPoint, FVector &NearestPointOut, float &LineParameterOut)
 
INTERACTIVETOOLSFRAMEWORK_API void GizmoMath::NearestPointOnLineToRay (const FVector &LineOrigin, const FVector &LineDirection, const FVector &RayOrigin, const FVector &RayDirection, FVector &NearestLinePointOut, float &LineParameterOut, FVector &NearestRayPointOut, float &RayParameterOut)
 
INTERACTIVETOOLSFRAMEWORK_API void GizmoMath::RayPlaneIntersectionPoint (const FVector &PlaneOrigin, const FVector &PlaneNormal, const FVector &RayOrigin, const FVector &RayDirection, bool &bIntersectsOut, FVector &PlaneIntersectionPointOut)
 
INTERACTIVETOOLSFRAMEWORK_API void GizmoMath::RaySphereIntersection (const FVector &SphereOrigin, const float SphereRadius, const FVector &RayOrigin, const FVector &RayDirection, bool &bIntersectsOut, FVector &SphereIntersectionPointOut)
 
template<typename RealType >
void INTERACTIVETOOLSFRAMEWORK_API GizmoMath::RayCylinderIntersection (const FVector &CylinderCenter, const FVector &CylinderAxis, RealType CylinderRadius, RealType CylinderHeight, const FVector &RayOrigin, const FVector &RayDirection, bool &bIntersectsOut, RealType &OutHitDepth)
 
template<typename RealType >
void INTERACTIVETOOLSFRAMEWORK_API GizmoMath::RayConeIntersection (const FVector &ConeCenter, const FVector &ConeDirection, RealType ConeCosAngle, RealType ConeHeight, const FVector &RayOrigin, const FVector &RayDirection, bool &bIntersectsOut, RealType &OutHitDepth)
 
template<typename RealType >
void INTERACTIVETOOLSFRAMEWORK_API GizmoMath::IntervalIntervalIntersection (const RealType Interval0[2], const RealType Interval1[2], int &OutNumIntersections, RealType &OutResult0, RealType &OutResult1)
 
INTERACTIVETOOLSFRAMEWORK_API void GizmoMath::ClosetPointOnCircle (const FVector &QueryPoint, const FVector &CircleOrigin, const FVector &CircleNormal, float CircleRadius, FVector &ClosestPointOut)
 
INTERACTIVETOOLSFRAMEWORK_API void GizmoMath::MakeNormalPlaneBasis (const FVector &PlaneNormal, FVector &BasisAxis1Out, FVector &BasisAxis2Out)
 
INTERACTIVETOOLSFRAMEWORK_API float GizmoMath::ComputeAngleInPlane (const FVector &Point, const FVector &PlaneOrigin, const FVector &PlaneNormal, const FVector &PlaneAxis1, const FVector &PlaneAxis2)
 
INTERACTIVETOOLSFRAMEWORK_API FVector2D GizmoMath::ComputeCoordinatesInPlane (const FVector &Point, const FVector &PlaneOrigin, const FVector &PlaneNormal, const FVector &PlaneAxis1, const FVector &PlaneAxis2)
 
INTERACTIVETOOLSFRAMEWORK_API FVector GizmoMath::ProjectPointOntoPlane (const FVector &Point, const FVector &PlaneOrigin, const FVector &PlaneNormal)
 
template<typename RealType >
INTERACTIVETOOLSFRAMEWORK_API RealType GizmoMath::SnapToIncrement (RealType Value, RealType Increment)
 
INTERACTIVETOOLSFRAMEWORK_API FVector GizmoMath::GetOrthogonalVector (const FVector &V)