Function snapToGrid

  • Parameters

    • value: number
    • gridSize: number

    Returns number