docs.unity.cn
    Show / Hide Table of Contents

    Method cross

    cross(float3, float3)

    Returns the cross product of two float3 vectors.

    Declaration
    public static float3 cross(float3 x, float3 y)
    Parameters
    Type Name Description
    float3 x

    First vector to use in cross product.

    float3 y

    Second vector to use in cross product.

    Returns
    Type Description
    float3

    The cross product of x and y.

    cross(double3, double3)

    Returns the cross product of two double3 vectors.

    Declaration
    public static double3 cross(double3 x, double3 y)
    Parameters
    Type Name Description
    double3 x

    First vector to use in cross product.

    double3 y

    Second vector to use in cross product.

    Returns
    Type Description
    double3

    The cross product of x and y.

    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