diff options
author | Keith Packard <keithp@keithp.com> | 2016-06-17 00:52:38 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-06-17 01:03:40 -0700 |
commit | 1dce20f7eee56166ac61798ca26eeb323dc8f012 (patch) | |
tree | e7f64afa79991e10d0b7aa680e98af3ce96a62bb /altoslib/AltosRotation.java | |
parent | 7175774c4f60ed3efd54417f2035b50ea0108c7b (diff) |
altoslib: Get rid of manual JSON encoding stuff
Now that the reflective JSON stuff is working, we can delete all of
the manual code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosRotation.java')
-rw-r--r-- | altoslib/AltosRotation.java | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/altoslib/AltosRotation.java b/altoslib/AltosRotation.java index 6db0b541..97cf7896 100644 --- a/altoslib/AltosRotation.java +++ b/altoslib/AltosRotation.java @@ -17,7 +17,7 @@ package org.altusmetrum.altoslib_11; -public class AltosRotation implements AltosJsonable { +public class AltosRotation extends AltosQuaternion { private AltosQuaternion rotation; public double tilt() { @@ -48,22 +48,7 @@ public class AltosRotation implements AltosJsonable { rotation = up.vectors_to_rotation(orient); } - public AltosRotation(AltosJson j) { - rotation = new AltosQuaternion(j); - } - public AltosRotation() { rotation = new AltosQuaternion(); } - - public AltosJson json() { - return rotation.json(); - } - - public static AltosRotation fromJson(AltosJson j, AltosRotation def) { - if (j == null) - return def; - - return new AltosRotation(j); - } } |