aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Board.elm
blob: fe9ac4eb222c66f76129cf1ce27c4b0a2bb3c2e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Model.Board
  ( initBoardSize
  , boardDiagonal
  ) where

import Model.Vec2 exposing (Vec2)

initBoardSize : Vec2
initBoardSize =
  { x = 500
  , y = 500
  }

boardDiagonal : Vec2 -> Float
boardDiagonal boardSize =
  boardSize.x ^ 2 + boardSize.y ^ 2
    |> sqrt