From: Bill Kuker Date: Wed, 15 Apr 2009 14:33:14 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=b2df069c74f1628c691ec3918e0d8c27f100fa40;p=sw%2Fmotorsim --- diff --git a/src/TriTest.java b/src/TriTest.java index 30b1aaa..59957c1 100644 --- a/src/TriTest.java +++ b/src/TriTest.java @@ -46,6 +46,10 @@ public class TriTest extends JPanel { coords[1] = first[1]; case PathIterator.SEG_LINETO: //Do it; + + //TODO XXX + //Usint arctan is imprecise, the base of the rectangle does not perfectly coincide with the + //edge of the poly. Instead I should find the normal vector and build the rect myself prerotated. double len = Math.sqrt(Math.pow(last[0] - coords[0], 2) + Math.pow(last[1] - coords[1], 2)); double dx = coords[0]-last[0]; double dy = coords[1]-last[1];