docs.unity.cn
    Show / Hide Table of Contents

    Method transform

    transform(AffineTransform, float3)

    Returns the result of transforming a float3 point by an AffineTransform.

    Declaration
    public static float3 transform(AffineTransform a, float3 pos)
    Parameters
    Type Name Description
    AffineTransform a

    The AffineTransform.

    float3 pos

    The position to transform.

    Returns
    Type Description
    float3

    The transformed position.

    transform(double4x4, double3)

    Return the result of transforming a double3 point by a double4x4 matrix

    Declaration
    public static double3 transform(double4x4 a, double3 b)
    Parameters
    Type Name Description
    double4x4 a

    Left hand side matrix argument that specifies the transformation.

    double3 b

    Right hand side point argument to be transformed.

    Returns
    Type Description
    double3

    The transformed point.

    transform(float4x4, float3)

    Return the result of transforming a float3 point by a float4x4 matrix

    Declaration
    public static float3 transform(float4x4 a, float3 b)
    Parameters
    Type Name Description
    float4x4 a

    Left hand side matrix argument that specifies the transformation.

    float3 b

    Right hand side point argument to be transformed.

    Returns
    Type Description
    float3

    The transformed point.

    transform(RigidTransform, float3)

    Returns the result of transforming a float3 point by a RigidTransform.

    Declaration
    public static float3 transform(RigidTransform a, float3 pos)
    Parameters
    Type Name Description
    RigidTransform a

    The RigidTransform.

    float3 pos

    The position to transform.

    Returns
    Type Description
    float3

    The transformed position.

    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