Language
Edit

MixedRealityTransform Struct

Definition

A structure that wraps position, rotation, and scale structures.

[System.Serializable]
public struct MixedRealityTransform : System.Collections.IEqualityComparer
[<System.Serializable>]
type MixedRealityTransform = struct
    interface IEqualityComparer
Public Structure MixedRealityTransform
Implements IEqualityComparer
Inheritance
MixedRealityTransform
Attributes
Implements

Constructors

Name Description
MixedRealityTransform(Transform)

Initializes a new MixedRealityTransform struct.

MixedRealityTransform(Vector3, Quaternion, Vector3)

Initializes a new MixedRealityTransform struct.

Properties

Name Description
Forward

The Z axis of the pose in world space.

Identity

The default value for a Six DoF Transform.

Position

The position of the transform.

Right

The X axis of the pose in world space.

Rotation

The rotation of the transform.

Scale

The scale of the transform.

Up

The Y axis of the pose in world space.

Methods

Name Description
Equals(MixedRealityTransform)

Test if the given MixedRealityTransform is equal to this structure.

Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

NewRotate(Quaternion)

Create a transform with only given rotation

NewScale(Vector3)

Create a transform with only given scale

NewTranslate(Vector3)

Create a transform with only given position

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Addition(MixedRealityTransform, MixedRealityTransform)

Add two instances of MixedRealityTransform together.

Equality(MixedRealityTransform, MixedRealityTransform)

Test if two MixedRealityTransform structures are equal.

Inequality(MixedRealityTransform, MixedRealityTransform)

Test if two MixedRealityTransform structures are not equal.

Explicit Interface Implementations

Name Description
IEqualityComparer.Equals(Object, Object)

Determines whether the specified objects are equal.

IEqualityComparer.GetHashCode(Object)

Returns a hash code for the specified object.

Applies to