diff options
| author | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
|---|---|---|
| committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
| commit | 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 (patch) | |
| tree | 926cef8cb76d46862ed2c4ec7028720611e47476 /src/PointMaker.java | |
| download | Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.gz Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.bz2 Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.zip | |
added source
Diffstat (limited to 'src/PointMaker.java')
| -rw-r--r-- | src/PointMaker.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/PointMaker.java b/src/PointMaker.java new file mode 100644 index 0000000..61c8691 --- /dev/null +++ b/src/PointMaker.java @@ -0,0 +1,28 @@ +/* */ public abstract interface PointMaker +/* */ { +/* 11 */ public static final PointMaker ORIGINAL = new PointMaker() { +/* */ public Point3D makePoint(double x, double y, double z, PointModel mod) { +/* 13 */ return new Point3D(x, y, z, mod); +/* */ } +/* 11 */ }; +/* */ +/* 17 */ public static final PointMaker POLAR = new PointMaker() { +/* */ public Point3D makePoint(double x, double y, double z, PointModel mod) { +/* 19 */ return new Point3D(y * Math.cos(Math.toRadians(x)), y * Math.sin(Math.toRadians(x)), z, mod); +/* */ } +/* 17 */ }; +/* */ +/* 22 */ public static final PointMaker POLAR3D = new PointMaker() +/* */ { +/* */ public Point3D makePoint(double x, double y, double z, PointModel mod) { +/* 25 */ return new Point3D(z * Math.cos(Math.toRadians(x)) * Math.cos(Math.toRadians(y)), z * Math.sin(Math.toRadians(x)), z * Math.cos(Math.toRadians(x)) * Math.cos(Math.toRadians(90.0D - y)), mod); +/* */ } +/* 22 */ }; +/* */ +/* */ public abstract Point3D makePoint(double paramDouble1, double paramDouble2, double paramDouble3, PointModel paramPointModel); +/* */ } + +/* Location: Modulus.jar + * Qualified Name: PointMaker + * JD-Core Version: 0.6.2 + */
\ No newline at end of file |