docs.unity3d.com
    Show / Hide Table of Contents

    Struct Normal

    A container for normal, tangent, and bitangent values.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ProBuilder
    Syntax
    public struct Normal : IEquatable<Normal>

    Properties

    bitangent

    A unit bitangent (sometimes called binormal).

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

    normal

    A unit normal.

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

    tangent

    A unit tangent.

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

    Methods

    Equals(Object)

    Tests whether this object is equal to another object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare against.

    Returns
    Type Description
    Boolean

    True if the objects are equal, false if not.

    Overrides
    ValueType.Equals(Object)

    Equals(Normal)

    Tests whether the specified Normal is equal to this one.

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

    The Normal object to compare against.

    Returns
    Type Description
    Boolean

    True if the objects are equal, false if not.

    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    An integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(Normal, Normal)

    Compares two objects for equality.

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

    The first Normal instance.

    Normal b

    The second Normal instance.

    Returns
    Type Description
    Boolean

    True if the objects are equal; false if not.

    Inequality(Normal, Normal)

    Compares two objects for inequality.

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

    The first Normal instance.

    Normal b

    The second Normal instance.

    Returns
    Type Description
    Boolean

    True if the objects are not equal; false if not.

    Back to top
    Terms of use
    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