negate method
Inverts this vector - i.e. sets x = -x, y = -y and z = -z.
Implementation
Vector3 negate() {
x = -x;
y = -y;
z = -z;
return this;
}
Inverts this vector - i.e. sets x = -x, y = -y and z = -z.
Vector3 negate() {
x = -x;
y = -y;
z = -z;
return this;
}