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

NameDescription
Public methodUxrAxis Constructor.

Properties

NameDescription
Public propertyOtherPerpendicular Returns the other perpendicular axis.
Public propertyPerpendicular Returns a perpendicular axis.

Methods

NameDescription
Public methodEquals(Object) Determines whether the specified object is equal to the current object. (Overrides Object.Equals(Object).)
Public methodEquals(UxrAxis) Indicates whether the current object is equal to another object of the same type.
Public methodGetColor Gets the color representing
Public methodGetHashCode Serves as the default hash function. (Overrides Object.GetHashCode().)
Public methodStatic memberOtherThan Returns the remaining axis which is not axis1 nor axis2.
Public methodToString Returns a string that represents the current object. (Overrides Object.ToString().)

Operators

NameDescription
Public operatorStatic memberEquality Equality operator.
Public operatorStatic memberImplicit(Int32 to UxrAxis) Implicit conversion from an integer to an UxrAxis.
Public operatorStatic memberImplicit(UxrAxis to Vector3) Implicit conversion from an UxrAxis to a Vector3.
Public operatorStatic memberImplicit(UxrAxis to Int32) Implicit conversion from an UxrAxis to an integer.
Public operatorStatic memberInequality Inequality operator.
Public operatorStatic memberUnaryNegation Unary minus operator. Negates the axis value.

Fields

NameDescription
Public fieldStatic memberX
Public fieldStatic memberY
Public fieldStatic memberZ

Extension Methods

NameDescription
Public Extension MethodThrowIfNull Throws an exception if the object is null. (Defined by ObjectExt.)

See Also

Reference

UltimateXR.Core.Math Namespace