Method Subtract
Subtract(Vertex, Vertex)
Subtracts two Vertex objects and returns the result in a new Vertex object. Subtraction is performed component-wise for every attribute on the Vertex.
Declaration
public static Vertex Subtract(Vertex a, Vertex b)
Parameters
Type | Name | Description |
---|---|---|
Vertex | a | First Vertex object. |
Vertex | b | Second Vertex object. |
Returns
Type | Description |
---|---|
Vertex | A new Vertex with the difference 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.
Subtract(Vertex)
Subtracts another Vertex object from this one using component-wise subtraction on each attribute.
Declaration
public void Subtract(Vertex b)
Parameters
Type | Name | Description |
---|---|---|
Vertex | b | The Vertex object to subtract. |
Remarks
Color, normal, and tangent values are not normalized within this function. If you are expecting unit vectors, you need to normalize these attributes.