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