UxrAxis Class
Class that allows to have formatted axes (A combo box with X, Y, Z strings) instead of numerical fields. It also allows conversion from and to integers and Vector3 types. See the UxrAxisPropertyDrawer editor class for the integration with Unity Editor.
Inheritance Hierarchy
System.Object
UltimateXR.Core.Math.UxrAxis
Namespace: UltimateXR.Core.Math
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
[SerializableAttribute]
public class UxrAxis : IEquatable<UxrAxis>
The UxrAxis type exposes the following members.
Constructors
Name | Description | |
---|---|---|
UxrAxis | Constructor. |
Properties
Name | Description | |
---|---|---|
OtherPerpendicular | Returns the other perpendicular axis. | |
Perpendicular | Returns a perpendicular axis. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).) | |
Equals(UxrAxis) | Indicates whether the current object is equal to another object of the same type. | |
GetColor | Gets the color representing | |
GetHashCode | Serves as the default hash function. (Overrides Object.GetHashCode().) | |
OtherThan | Returns the remaining axis which is not axis1 nor axis2. | |
ToString | Returns a string that represents the current object. (Overrides Object.ToString().) |
Operators
Name | Description | |
---|---|---|
Equality | Equality operator. | |
Implicit(Int32 to UxrAxis) | Implicit conversion from an integer to an UxrAxis. | |
Implicit(UxrAxis to Vector3) | Implicit conversion from an UxrAxis to a Vector3. | |
Implicit(UxrAxis to Int32) | Implicit conversion from an UxrAxis to an integer. | |
Inequality | Inequality operator. | |
UnaryNegation | Unary minus operator. Negates the axis value. |
Fields
Name | Description | |
---|---|---|
X | ||
Y | ||
Z |
Extension Methods
Name | Description | |
---|---|---|
ThrowIfNull | Throws an exception if the object is null. (Defined by ObjectExt.) |