negate method

Vec3 negate(
  1. Vec3 target
)

Make the vector point in the opposite direction. @param target Optional target to save in

Implementation

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