Method Divide
Divide(Vertex, float)
Divides a Vertex object by the specified value
and returns the result in a new Vertex object.
Division is performed component-wise for every attribute.
Declaration
public static Vertex Divide(Vertex a, float value)
Parameters
Type | Name | Description |
---|---|---|
Vertex | a | Vertex object to divide (dividend). |
float | value | Divisor. |
Returns
Type | Description |
---|---|
Vertex | A new Vertex with the quotient of |
Remarks
Color, normal, and tangent values are not normalized within this function. If you are expecting unit vectors, you need to normalize these attributes.
Divide(float)
Divides this Vertex object by the specified value
using component-wise division on each attribute.
Declaration
public void Divide(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | Divisor. |
Remarks
Color, normal, and tangent values are not normalized within this function. If you are expecting unit vectors, you need to normalize these attributes.