Function clampMagnitude

Clamps the magnitude of a vector

  • Parameters

    • v: Vector

      Vector to clamp

    • max: number = 1

      Maximum magnitude

    • min: number = 0

      Minium magnitude

    Returns Point | Coord