docs.unity.cn
    Show / Hide Table of Contents

    Method AffineTransform

    AffineTransform(float3, quaternion)

    Returns an AffineTransform constructed from a translation represented by a float3 vector and rotation represented by a unit quaternion.

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

    The AffineTransform translation.

    quaternion rotation

    The AffineTransform rotation.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given the translation vector and rotation quaternion.

    AffineTransform(float3, quaternion, float3)

    Returns an AffineTransform constructed from a translation represented by a float3 vector, rotation represented by a unit quaternion and scale represented by a float3 vector.

    Declaration
    public static AffineTransform AffineTransform(float3 translation, quaternion rotation, float3 scale)
    Parameters
    Type Name Description
    float3 translation

    The translation vector.

    quaternion rotation

    The rotation quaternion.

    float3 scale

    The scale vector.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given the translation vector, rotation quaternion and scale vector.

    AffineTransform(float3, float3x3)

    Returns an AffineTransform constructed from a translation represented by float3 vector and a float3x3 matrix representing both rotation and scale.

    Declaration
    public static AffineTransform AffineTransform(float3 translation, float3x3 rotationScale)
    Parameters
    Type Name Description
    float3 translation

    The translation vector.

    float3x3 rotationScale

    The rotation and scale matrix.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given the translation vector and float3x3 matrix.

    AffineTransform(float3x3)

    Returns an AffineTransform constructed from a float3x3 matrix representing both rotation and scale.

    Declaration
    public static AffineTransform AffineTransform(float3x3 rotationScale)
    Parameters
    Type Name Description
    float3x3 rotationScale

    The rotation and scale matrix.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given a float3x3 matrix.

    AffineTransform(float4x4)

    Returns an AffineTransform constructed from a float4x4 matrix.

    Declaration
    public static AffineTransform AffineTransform(float4x4 m)
    Parameters
    Type Name Description
    float4x4 m

    The float4x4 matrix.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given a float4x4 matrix.

    AffineTransform(float3x4)

    Returns an AffineTransform constructed from a float3x4 matrix.

    Declaration
    public static AffineTransform AffineTransform(float3x4 m)
    Parameters
    Type Name Description
    float3x4 m

    The float3x4 matrix.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given a float3x4 matrix.

    AffineTransform(RigidTransform)

    Returns an AffineTransform constructed from a RigidTransform.

    Declaration
    public static AffineTransform AffineTransform(RigidTransform rigid)
    Parameters
    Type Name Description
    RigidTransform rigid

    The RigidTransform.

    Returns
    Type Description
    AffineTransform

    The AffineTransform given a RigidTransform.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023