From c4ae3b0ee4bd338995cfecf34e0aeb49f05fa70e Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Tue, 2 Sep 2014 21:35:58 +0200 Subject: Initial commit --- src/Board.elm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/Board.elm (limited to 'src/Board.elm') diff --git a/src/Board.elm b/src/Board.elm new file mode 100644 index 0000000..fa544d8 --- /dev/null +++ b/src/Board.elm @@ -0,0 +1,15 @@ +module Board where + +import Vec2 (Vec2) + +boardSize : Vec2 +boardSize = + { x = 500 + , y = 500 + } + +boardDiagonal : Float +boardDiagonal = + let x = boardSize.x + y = boardSize.y + in sqrt(x^2 + y^2) -- cgit v1.2.3