Struct Normal | ProBuilder | 4.3.1
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX