docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Math.MTransform

    A transform in matrix format

    Implements
    IEquatable<Math.MTransform>
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Physics
    Assembly: Unity.Physics.dll
    Syntax
    public struct Math.MTransform : IEquatable<Math.MTransform>

    Constructors

    MTransform(RigidTransform)

    Constructor.

    Declaration
    public MTransform(RigidTransform transform)
    Parameters
    Type Name Description
    RigidTransform transform

    The transform.

    MTransform(float3x3, float3)

    Constructor.

    Declaration
    public MTransform(float3x3 rotation, float3 translation)
    Parameters
    Type Name Description
    float3x3 rotation

    The rotation.

    float3 translation

    The translation.

    MTransform(quaternion, float3)

    Constructor.

    Declaration
    public MTransform(quaternion rotation, float3 translation)
    Parameters
    Type Name Description
    quaternion rotation

    The rotation.

    float3 translation

    The translation.

    Fields

    Rotation

    The rotation.

    Declaration
    public float3x3 Rotation
    Field Value
    Type Description
    float3x3

    Translation

    The translation.

    Declaration
    public float3 Translation
    Field Value
    Type Description
    float3

    Properties

    Identity

    Gets the identity.

    Declaration
    public static Math.MTransform Identity { get; }
    Property Value
    Type Description
    Math.MTransform

    The identity.

    InverseRotation

    Gets the inverse rotation.

    Declaration
    public float3x3 InverseRotation { get; }
    Property Value
    Type Description
    float3x3

    The inverse rotation.

    Methods

    Equals(MTransform)

    Tests if this MTransform is considered equal to another.

    Declaration
    public bool Equals(Math.MTransform other)
    Parameters
    Type Name Description
    Math.MTransform other

    The m transform to compare to this object.

    Returns
    Type Description
    bool

    True if the objects are considered equal, false if they are not.

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)