Struct MixedRealityTransform
Implements
IEqualityComparer
Assembly: cs.temp.dll.dll
public struct MixedRealityTransform : IEqualityComparer
Constructors
Declaration
public MixedRealityTransform(Vector3 position, Quaternion rotation, Vector3 scale)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Quaternion |
rotation |
|
Vector3 |
scale |
|
Properties
The Z axis of the pose in world space.
Declaration
public Vector3 Forward { get; }
Property Value
The default value for a Six Dof Transform.
Declaration
public static MixedRealityTransform Identity { get; }
Property Value
The position of the transform.
Declaration
public Vector3 Position { get; set; }
Property Value
The X axis of the pose in world space.
Declaration
public Vector3 Right { get; }
Property Value
The rotation of the transform.
Declaration
public Quaternion Rotation { get; set; }
Property Value
Type |
Description |
Quaternion |
|
The scale of the transform.
Declaration
public Vector3 Scale { get; set; }
Property Value
The Y axis of the pose in world space.
Declaration
public Vector3 Up { get; }
Property Value
Methods
Declaration
public bool Equals(MixedRealityTransform other)
Parameters
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Declaration
public override int GetHashCode()
Returns
Overrides
Create a transform with only given rotation
Declaration
public static MixedRealityTransform NewRotate(Quaternion rotation)
Parameters
Type |
Name |
Description |
Quaternion |
rotation |
|
Returns
Create a transform with only given scale
Declaration
public static MixedRealityTransform NewScale(Vector3 scale)
Parameters
Type |
Name |
Description |
Vector3 |
scale |
|
Returns
Create a transform with only given position
Declaration
public static MixedRealityTransform NewTranslate(Vector3 position)
Parameters
Type |
Name |
Description |
Vector3 |
position |
|
Returns
Declaration
public override string ToString()
Returns
Overrides
Operators
Declaration
public static MixedRealityTransform operator +(MixedRealityTransform left, MixedRealityTransform right)
Parameters
Returns
Declaration
public static bool operator ==(MixedRealityTransform left, MixedRealityTransform right)
Parameters
Returns
Declaration
public static bool operator !=(MixedRealityTransform left, MixedRealityTransform right)
Parameters
Returns
Implements
IEqualityComparer