60f59bb2b7
ALGO: fix the algorithm
...
It was imprecise before and only worked by accident.
'grahamGetCHSteps' is a bit broken for now and caused duplicates.
2014-10-12 01:54:44 +02:00
hasufell
d81e932d00
DIAGRAM: improve behavior for dimensions like (100,300) (100,300)
2014-10-11 13:49:53 +02:00
hasufell
6c66a7acb3
PARSER: add parser for negative doubles
2014-10-11 04:39:51 +02:00
7fb3588300
DIAGRAM: improve style and readability
2014-10-11 03:59:21 +02:00
bfa3665985
DIAGRAM: fix grid/axis for negative dimensions
2014-10-11 03:24:18 +02:00
5e5f305c65
GUI: merge callback functions into drawDiag/saveDiag
2014-10-11 02:01:17 +02:00
0681b4d605
GUI: remove code duplication
2014-10-11 00:16:18 +02:00
869cbd0af3
GUI: instantly redraw for enabling checkboxes and other stuff
2014-10-11 00:02:06 +02:00
b6aa9d9086
GUI: fix signal handling for onExpose
...
Doing the signal handling connect inside the callback function
was a bad idea. Instead do it in the makeGUI function and just
call onClickedDrawButton for every expose event.
2014-10-11 00:01:43 +02:00
ab2a0a331d
DIAGRAM: fix unfiltered vtable for pointText functions
2014-10-10 23:59:02 +02:00
60843e5879
DIAGRAM: rm unnecessary square
2014-10-10 23:28:01 +02:00
eadbf76978
CABAL: rm unnecessary dependency from Gtk executable
2014-10-10 18:02:26 +02:00
40313baa7d
CABAL: add missing JuicyPixels
2014-10-10 17:55:52 +02:00
8494c106d9
Update .gitignore
2014-10-10 17:53:17 +02:00
085b06a112
PARSER: eta reduction
2014-10-10 17:48:22 +02:00
954b104642
Style
2014-10-10 17:40:25 +02:00
6e4c7e47c2
Restructure modules
2014-10-10 17:40:08 +02:00
cb7d5269a0
DIAGRAM: add maybeDiag convenience function
2014-10-10 15:40:56 +02:00
5d5d0b7643
DIAGRAM: improve haddock doc
2014-10-10 15:34:38 +02:00
1540bf443e
DIAGRAM: abstract point to text conversion out a little
2014-10-10 15:34:18 +02:00
01e2dd7802
Allow showing the coordinate points as text
2014-10-10 15:03:12 +02:00
4137af7a7f
DIAGRAM: Fix haddock comment
2014-10-10 01:08:53 +02:00
207360b4a5
Improve function names
2014-10-10 00:42:15 +02:00
dfb25a7a1d
DIAGRAM: make the grid size modifiable
2014-10-10 00:30:56 +02:00
8338ab109f
Clarify some String types
2014-10-10 00:23:58 +02:00
12da4040dc
Improve overall style and indenting
2014-10-10 00:19:05 +02:00
22482f7c49
DIAGRAM: improve haddock doc
2014-10-09 21:37:58 +02:00
fa749ddd25
DIAGRAM: finalize x/y-axis wrt #1
2014-10-09 21:37:45 +02:00
ccbe034ef1
DIAGRAM: improve style
2014-10-09 18:55:55 +02:00
e2f1c865f3
DIAGRAM: fix filtering of points based on the dimensions
2014-10-09 18:51:32 +02:00
de5aba792e
Allow showing a grid
2014-10-09 18:45:37 +02:00
4195404694
DIAGRAM: improve x/y-axis by showing segment lines
2014-10-09 18:13:33 +02:00
9c9cb29e45
ALGO: improve style
2014-10-09 17:22:41 +02:00
8a2ef92fa7
DIAGRAMS: add TODO note
2014-10-09 17:20:14 +02:00
fa3e498c45
DIAGRAM: rename functions to reflect their type
2014-10-09 17:19:58 +02:00
5020778f60
DIAGRAM: fix crash when passed an empty array to showConvexHullLines
2014-10-09 17:09:49 +02:00
143d514648
Add collinear.obj
2014-10-09 17:02:29 +02:00
d0e8c85a8d
PARSER: improve haddock comments
2014-10-09 17:00:03 +02:00
9c724ec479
PARSER: improve style
2014-10-09 16:59:09 +02:00
70665e4b29
PARSER: allow normal Integers for posDouble as well
...
1.0 => valid
1 => valid
2014-10-09 16:53:32 +02:00
4877837f93
Fix step depth in grahamGetCHSteps
...
If we have 3 points and pass 1 to 'g' then 2 steps will be computed.
That means we have to substract 2 from the total length in the call
to 'g'.
2014-10-09 16:11:34 +02:00
5ce94d36aa
Add missing Algorithms.ConvexHull to 'other-modules'
2014-10-09 03:31:15 +02:00
a5473eaf96
Fix haddock docs
2014-10-09 03:27:02 +02:00
357c427f0b
Fix haddock comment
2014-10-09 03:15:27 +02:00
f230738e08
Add TODO note
2014-10-09 03:10:52 +02:00
1fd0b9f27f
Allow generating gifs vor visualizing steps of the graham algo
...
TODO: this still requires us to hack on Main.hs, because
it isn't compatible with the GUI.
Also see https://github.com/diagrams/diagrams-cairo/issues/55
2014-10-09 03:10:21 +02:00
8949d05b3b
Properly handle mempty in Monoid Diag instance
2014-10-09 00:59:18 +02:00
9b566f2a63
Improve error handling
2014-10-08 22:07:37 +02:00
2fa1204d82
Also connect lines of convex hull
2014-10-08 19:31:55 +02:00
0677a26040
Fix y-axis
2014-10-08 19:29:51 +02:00