• Negates a 3D vector.

    This function computes the negative of the provided 3D vector by multiplying each of its components by -1. The result is stored in the provided destination vector or in the original vector if no destination is provided.

    Parameters

    • v: Vec3

      The 3D vector to negate.

    • Optionaldest: Vec3

      Optional destination vector to store the result. If not provided, the result is stored in the input vector.

    Returns Vec3

    The negated 3D vector.