Class UUxtMathUtilsFunctionLibrary
Library of utility functions for UX Tools.
Inheritance
System::Object
UBlueprintFunctionLibrary
UUxtMathUtilsFunctionLibrary
Inherited Members
UUxtMathUtilsFunctionLibrary
Namespace:
Assembly: .dll
Syntax
public: class UUxtMathUtilsFunctionLibrary
Methods
| Improve this Doc View SourceCalculateHierarchyBounds(USceneComponent *Component, const FTransform &LocalToTarget, HierarchyBoundsFilter Filter=nullptr)
Calculates the composite bounding box and bounding sphere around a component and its children. The optional filter component can be used to ignore specific scene components.
Declaration
public: static FBoxSphereBounds CalculateHierarchyBounds(USceneComponent *Component, const FTransform &LocalToTarget, HierarchyBoundsFilter Filter=nullptr)
Parameters
Type | Name | Description |
---|---|---|
USceneComponent * | Component | |
const FTransform & | LocalToTarget | |
_u_uxt_math_utils_function_library.HierarchyBoundsFilter | Filter |
Returns
Type | Description |
---|---|
FBoxSphereBounds |
CalculateHierarchyBounds(USceneComponent *Component, HierarchyBoundsFilter Filter=nullptr)
Calculates the composite bounding box and bounding sphere around a component and its children, the output is in the space of the component. The optional filter component can be used to ignore specific scene components.
Declaration
public: static FBoxSphereBounds CalculateHierarchyBounds(USceneComponent *Component, HierarchyBoundsFilter Filter=nullptr)
Parameters
Type | Name | Description |
---|---|---|
USceneComponent * | Component | |
_u_uxt_math_utils_function_library.HierarchyBoundsFilter | Filter |
Returns
Type | Description |
---|---|
FBoxSphereBounds |
GetRotationBetweenVectors(const FVector &Vector1, const FVector &Vector2)
Compute minimal rotation between vectors.
Declaration
public: static FRotator GetRotationBetweenVectors(const FVector &Vector1, const FVector &Vector2)
Parameters
Type | Name | Description |
---|---|---|
const FVector & | Vector1 | |
const FVector & | Vector2 |
Returns
Type | Description |
---|---|
FRotator |
RotateAboutPivotPoint(const FTransform &Transform, const FRotator &Rotation, const FVector &Pivot)
Apply rotation about a pivot point to the transform.
Declaration
public: static FTransform RotateAboutPivotPoint(const FTransform &Transform, const FRotator &Rotation, const FVector &Pivot)
Parameters
Type | Name | Description |
---|---|---|
const FTransform & | Transform | |
const FRotator & | Rotation | |
const FVector & | Pivot |
Returns
Type | Description |
---|---|
FTransform |
SwingTwistDecompose(const FRotator &Rotation, const FVector &TwistAxis, FRotator &Swing, FRotator &Twist)
Decompose a rotation into swing and twist components. The twist component describes a rotation around the given twist axis, while the swing contains the remaining rotation.
Declaration
public: static void SwingTwistDecompose(const FRotator &Rotation, const FVector &TwistAxis, FRotator &Swing, FRotator &Twist)
Parameters
Type | Name | Description |
---|---|---|
const FRotator & | Rotation | |
const FVector & | TwistAxis | |
FRotator & | Swing | |
FRotator & | Twist |