docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct Normal

    A container for normal, tangent, and bitangent values.

    Implements
    IEquatable<Normal>
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.ProBuilder
    Assembly: Unity.ProBuilder.dll
    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
    bool

    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
    bool

    True if the objects are equal, false if not.

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    An integer that is the hash code for this instance.

    Overrides
    ValueType.GetHashCode()

    Operators

    operator ==(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
    bool

    True if the objects are equal; false if not.

    operator !=(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
    bool

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

    Implements

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