• Negates a 4D vector.

    This function negates each element of the provided 4D vector and stores the result in the destination vector. If no destination is provided, the original vector is modified.

    Parameters

    • v: Vec4

      The 4D vector to negate.

    • Optionaldest: Vec4

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

    Returns Vec4

    The negated 4D vector.