diff options
author | adrian-bowyer <adrian-bowyer@cb376a5e-1013-0410-a455-b6b1f9ac8223> | 2010-08-24 20:49:32 +0000 |
---|---|---|
committer | adrian-bowyer <adrian-bowyer@cb376a5e-1013-0410-a455-b6b1f9ac8223> | 2010-08-24 20:49:32 +0000 |
commit | 1d78912211798384b8f06ecc44ad0ebdc9074a2e (patch) | |
tree | 4095d318f7439255be95b5d6f0f35d64f62dbaa7 | |
parent | 3d95b66ab9c98e301e70aaf0510a581ff8c9fa25 (diff) | |
download | reprap-backup-1d78912211798384b8f06ecc44ad0ebdc9074a2e.tar.gz reprap-backup-1d78912211798384b8f06ecc44ad0ebdc9074a2e.zip |
Removed redundant Coords class from PCB.
git-svn-id: https://reprap.svn.sourceforge.net/svnroot/reprap@3727 cb376a5e-1013-0410-a455-b6b1f9ac8223
-rw-r--r-- | trunk/reprap/host/src/org/reprap/pcb/Coords.java | 74 | ||||
-rw-r--r-- | trunk/reprap/host/src/org/reprap/pcb/GerberGCode.java | 2 |
2 files changed, 1 insertions, 75 deletions
diff --git a/trunk/reprap/host/src/org/reprap/pcb/Coords.java b/trunk/reprap/host/src/org/reprap/pcb/Coords.java deleted file mode 100644 index a42ecd64..00000000 --- a/trunk/reprap/host/src/org/reprap/pcb/Coords.java +++ /dev/null @@ -1,74 +0,0 @@ -package org.reprap.pcb; - -//import Cords; - -public class Coords { - public double x,y; - - public Coords(double x, double y) - { - this.x = x; - this.y = y; - } - - - public boolean equals(Coords b) - { - - if(Double.compare(x, b.x) == 0 && Double.compare(y, b.y) == 0) - return true; - - return false; - - } - - - public void add(Coords b) - { - x += b.x; - y += b.y; - } - - public void sub(Coords b) - { - x -= b.x; - y -= b.y; - } - - public Coords mul(double f) - { - x = x*f; - y = y*f; - - return this; - } - - public double length() - { - return Math.sqrt(x*x + y*y); - } - - public double distance(Coords ob) - { - Coords b = ob.clone(); - b.sub(this); - - return b.length(); - } - - public Coords orthogonalNormal() - { - Coords b = clone(); - double l = length(); - double tmp; - tmp = b.x/l; - b.x = -b.y/l; - b.y = tmp; - return b; - } - - public Coords clone() - { - return new Coords(x,y); - } -} diff --git a/trunk/reprap/host/src/org/reprap/pcb/GerberGCode.java b/trunk/reprap/host/src/org/reprap/pcb/GerberGCode.java index 07d95a65..05a8830e 100644 --- a/trunk/reprap/host/src/org/reprap/pcb/GerberGCode.java +++ b/trunk/reprap/host/src/org/reprap/pcb/GerberGCode.java @@ -5,7 +5,7 @@ import javax.media.j3d.Material; import javax.vecmath.Color3f; //import org.reprap.pcb.Coords; import org.reprap.geometry.polygons.*; -import org.reprap.Attributes; +//import org.reprap.Attributes; import org.reprap.utilities.RrGraphics; import org.reprap.Preferences; |