Vec4
Description
Represents a vector that includes x, y, z, and w components.
Properties
w | W component of the vector. |
x | X component of the vector. |
y | Y component of the vector. |
z | Z component of the vector. |
Constructor
Vec4 | Constructs a vector by xyzw component values. |
Operators
- | Subtracts one vector from another. |
!= | Compares two vectors. |
* | Multiplies a vector by another vector or a scale factor. |
/ | Divides a vector by another vector or a scale factor. |
+ | Adds two vectors together. |
+= | Assigns the vector to be the sum of two vectors. |
-= | Assigns the vector to be the difference of two vectors. |
== | Compares two vectors. |
unary - | Negates the vector. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Vec4.operator *
Vec4 operator *( Vec4 otherVec ) |
Vec4 operator *( double factor ) |
Parameters
otherVec | The vector to multiply this vector by. |
factor | A scale factor to multiply each component by. |
Returns
Vec4 | The resulting vector. |
Description
Multiplies a vector by another vector or a scale factor.
When a Vec4 is passed, the operation will perform per-component multiplication.
Vec4 vec = someVector * anotherVector;
Vec4 vec = someVector * 1.2;
Do no remove, this fixes the anchor on doc.flexsim.com
Vec4.operator /
Vec4 operator /( Vec4 otherVec ) |
Vec4 operator /( double factor ) |
Parameters
otherVec | The vector to divide this vector by. |
factor | A scale factor to divide each component by. |
Returns
Vec4 | The resulting vector. |
Description
Divides a vector by another vector or a scale factor.
When a Vec4 is passed, the operation will perform per-component division.
Vec4 divVec = someVector / anotherVector;
Vec4 divVec = someVector / 1.2;
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com
Do no remove, this fixes the anchor on doc.flexsim.com