Struct Normal
A container for normal, tangent, and bitangent values.
Implements
Inherited Members
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
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
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. |