UxrMathUtils Class
Contains math computations involving elements that do not belong to a specific class. Most math is available through extensions classes in namespaces such as UltimateXR.Extensions.System.Math or UltimateXR.Extensions.Unity.Math. Math related to animation is also available through classes in namespaces such as UltimateXR.Animation.IK, UltimateXRAnimation.Interpolation or UltimateXR.Animation.Splines. This class will contain math functionality that cannot be assigned to any extensions class.
Inheritance Hierarchy
System.Object
UltimateXR.Core.Math.UxrMathUtils
Namespace: UltimateXR.Core.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static class UxrMathUtils
The UxrMathUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
ApplyAlignment | Applies to position and rotation the transformation to make a transform defined by sourcePosition and sourceRotation move and rotate to targetPosition and targetRotation. | |
FindLineCircleIntersections2D | Tries to find the intersection(s) between a 2D line and a 2D circle Code from: http://csharphelper.com/blog/2014/09/determine-where-a-line-intersects-a-circle-in-c/ | |
IsBoxInsideBox(Vector3, Quaternion, Vector3, Vector3, Vector3, BoxCollider, Vector3) | Checks if a box is completely (all corners) inside a BoxCollider | |
IsBoxInsideBox(Vector3, Quaternion, Vector3, Vector3, Vector3, Vector3, Quaternion, Vector3, Vector3, Vector3, Vector3) | Checks if box1 is completely (all corners) inside box2 |