Struct Normal | ProBuilder | 4.3.1
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Normal

    A container for normal, tangent, and bitangent values.

    Namespace: UnityEngine.ProBuilder
    Syntax
    public struct Normal : IEquatable<Normal>

    Properties

    bitangent

    Declaration
    public Vector3 bitangent { get; set; }
    Property Value
    Type Description
    Vector3

    A unit bitangent (sometimes called binormal).

    normal

    Declaration
    public Vector3 normal { get; set; }
    Property Value
    Type Description
    Vector3

    A unit normal.

    tangent

    Declaration
    public Vector4 tangent { get; set; }
    Property Value
    Type Description
    Vector4

    A unit tangent.

    Methods

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    Equals(Normal)

    Declaration
    public bool Equals(Normal other)
    Parameters
    Type Name Description
    Normal other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(Normal, Normal)

    Declaration
    public static bool operator ==(Normal a, Normal b)
    Parameters
    Type Name Description
    Normal a
    Normal b
    Returns
    Type Description
    Boolean

    Inequality(Normal, Normal)

    Declaration
    public static bool operator !=(Normal a, Normal b)
    Parameters
    Type Name Description
    Normal a
    Normal b
    Returns
    Type Description
    Boolean
    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