Method Add
Add(Vertex, Vertex)
Adds two Vertex objects together and returns the result in a new Vertex object. Addition is performed component-wise for every attribute on the Vertex.
Declaration
public static Vertex Add(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 sum 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.
Add(Vertex)
Adds another Vertex object to this one using component-wise addition on each attribute.
Declaration
public void Add(Vertex b)
Parameters
Type | Name | Description |
---|---|---|
Vertex | b | The Vertex object to add. |
Remarks
Color, normal, and tangent values are not normalized within this function. If you are expecting unit vectors, you need to normalize these attributes.