docs.unity3d.com
Search Results for

    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.

    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)