Additional methods for Mono.Simd.Vector4f.
public static class VectorExtensions
Returns the approximate cosine of the four floats in the vector.
SyntaxParameters
x
A vector of 4 floats.
Returns
Returns the cosine each element of the vector.
SyntaxParameters
v1
A vector of 4 floats.
Returns
Creates a new vector4f from the given vectors, selecting a component from sourceIfTrue if the corresponding component in the mask is -1 and from sourceIfFalse if 0.
SyntaxParameters
mask
The mask vector.
sourceIfTrue
Returns the approximate sine of the four floats in the vector.
SyntaxParameters
a
A vector of 4 floats
Returns
Returns the sine each element of the vector.
SyntaxParameters
v1
A vector of 4 floats.
Returns
Returns the approximate sine of each element in the vector.
SyntaxParameters
x
A vector of 4 floats.
Returns
The approximate cosine of each element.
Namespace: Sansar Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
sourceIfFalse
The vector containing the elements that are selected if the maks is false.
Returns
A new vector with elements selected from the source vectors based on the mask.
Namespace: Sansar Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0
Namespace: Sansar Assembly: Sansar.Script (in Sansar.Script.dll) Assembly Versions: 1.0.0.0