Struct Plane | Unity Physics | 0.5.1-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Plane

    Namespace: Unity.Physics
    Syntax
    public struct Plane

    Constructors

    Plane(float3, Single)

    Declaration
    public Plane(float3 normal, float distance)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 normal
    Single distance

    Properties

    Distance

    Declaration
    public float Distance { get; set; }
    Property Value
    Type Description
    Single

    Flipped

    Declaration
    public Plane Flipped { get; }
    Property Value
    Type Description
    Plane

    Normal

    Declaration
    public float3 Normal { get; set; }
    Property Value
    Type Description
    Unity.Mathematics.float3

    Methods

    Projection(float3)

    Declaration
    public float3 Projection(float3 point)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 point
    Returns
    Type Description
    Unity.Mathematics.float3

    SignedDistanceToPoint(float3)

    Declaration
    public float SignedDistanceToPoint(float3 point)
    Parameters
    Type Name Description
    Unity.Mathematics.float3 point
    Returns
    Type Description
    Single

    Operators

    Implicit(Plane to float4)

    Declaration
    public static implicit operator float4(Plane plane)
    Parameters
    Type Name Description
    Plane plane
    Returns
    Type Description
    Unity.Mathematics.float4
    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