negate method

Vec3 negate(
  1. Vec3 target
)

Invert this vector

Implementation

Vec3 negate (Vec3 target) {
  target.x = -x;
  target.y = -y;
  target.z = -z;
  return target;
}