]> git.gag.com Git - sw/motorsim/commitdiff
(no commit message)
authorBill Kuker <bkuker@billkuker.com>
Wed, 15 Apr 2009 14:33:14 +0000 (14:33 +0000)
committerBill Kuker <bkuker@billkuker.com>
Wed, 15 Apr 2009 14:33:14 +0000 (14:33 +0000)
src/TriTest.java

index 30b1aaab8f36086304234df455268ae2efd04f31..59957c1c0f098102d60155ee267ad3d7b163f707 100644 (file)
@@ -46,6 +46,10 @@ public class TriTest extends JPanel {
                                                coords[1] = first[1];\r
                                        case PathIterator.SEG_LINETO:\r
                                                //Do it;\r
+                                               \r
+                                               //TODO XXX\r
+                                               //Usint arctan is imprecise, the base of the rectangle does not perfectly coincide with the\r
+                                               //edge of the poly. Instead I should find the normal vector and build the rect myself prerotated.\r
                                                double len = Math.sqrt(Math.pow(last[0] - coords[0], 2) + Math.pow(last[1] - coords[1], 2));\r
                                                double dx = coords[0]-last[0];\r
                                                double dy = coords[1]-last[1];\r