Method Multiply
Multiply(Vertex, float)
Multiples a Vertex object by the specified value
and returns the result in a new Vertex object.
Multiplication is performed component-wise for every attribute on the Vertex.
Declaration
public static Vertex Multiply(Vertex a, float value)
Parameters
Type | Name | Description |
---|---|---|
Vertex | a | Vertex object to multiply |
float | value | Multiplication factor. |
Returns
Type | Description |
---|---|
Vertex | A new Vertex with the product 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.
Multiply(float)
Multiples this Vertex object by the specified value
using component-wise multiplication on each attribute.
Declaration
public void Multiply(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | Multiplication factor. |
Remarks
Color, normal, and tangent values are not normalized within this function. If you are expecting unit vectors, you need to normalize these attributes.