docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateFromUnitNormalAndDistance

    CreateFromUnitNormalAndDistance(float3, float)

    Creates a normalized Plane directly without normalization cost.

    Declaration
    public static Plane CreateFromUnitNormalAndDistance(float3 unitNormal, float distance)
    Parameters
    Type Name Description
    float3 unitNormal

    A non-zero vector that is perpendicular to the plane. It must be unit length.

    float distance

    Distance from the origin along the normal. A negative value moves the plane in the same direction as the normal while a positive value moves it in the opposite direction.

    Returns
    Type Description
    Plane

    Normalized Plane constructed from given inputs.

    Remarks

    If you have a unit length normal vector, you can create a Plane faster than using one of its constructors by calling this function.

    In This Article
    Back to top
    Copyright © 2025 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)