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 { readonly get; set; }
    Property Value
    Type Description
    Vector3

    A unit bitangent (sometimes called binormal).

    normal

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

    A unit normal.

    tangent

    Declaration
    public Vector4 tangent { readonly 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 — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)