Function negate

  • Negates a vector.

    Parameters

    • v: Vec3

      The vector.

    • Optional dst: Vec3

      vector to hold result. If not passed in a new one is created.

    Returns Vec3

    -v.