diff --git a/src/main/java/org/orekit/rugged/los/FixedLOS.java b/src/main/java/org/orekit/rugged/los/FixedLOS.java index e3f15d0f97709498c646d98df21bc2a464c1c38b..ef969099d5a2a3ef85b7a98e1dc87ca64078cf40 100644 --- a/src/main/java/org/orekit/rugged/los/FixedLOS.java +++ b/src/main/java/org/orekit/rugged/los/FixedLOS.java @@ -17,7 +17,6 @@ package org.orekit.rugged.los; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; -import org.orekit.rugged.linesensor.LineSensor; import org.orekit.time.AbsoluteDate; /** Line-of-sight which does not depends on time. diff --git a/src/main/java/org/orekit/rugged/los/FixedRotation.java b/src/main/java/org/orekit/rugged/los/FixedRotation.java index 56368109a0901a640f1ff4393ed1b70c83a1aa0b..8489e3ba1215abcfb97ed3015926ca7b8d7ef1c4 100644 --- a/src/main/java/org/orekit/rugged/los/FixedRotation.java +++ b/src/main/java/org/orekit/rugged/los/FixedRotation.java @@ -27,7 +27,7 @@ import org.orekit.time.AbsoluteDate; public class FixedRotation implements LOSTransform { /** Underlying rotation. */ - final Rotation rotation; + private final Rotation rotation; /** Simple constructor. * @param rotation rotation to apply @@ -38,8 +38,8 @@ public class FixedRotation implements LOSTransform { /** {@inheritDoc} */ @Override - public Vector3D transformLOS(int i, Vector3D los, AbsoluteDate date) { + public Vector3D transformLOS(final int i, final Vector3D los, final AbsoluteDate date) { return rotation.applyTo(los); } - -} \ No newline at end of file + +} diff --git a/src/main/java/org/orekit/rugged/los/LOSBuilder.java b/src/main/java/org/orekit/rugged/los/LOSBuilder.java index 67ed4f38fe44e66872254095717fc1d37211a311..581ffb8bc1fc839f420150999caac66f6c1eb2b1 100644 --- a/src/main/java/org/orekit/rugged/los/LOSBuilder.java +++ b/src/main/java/org/orekit/rugged/los/LOSBuilder.java @@ -36,7 +36,7 @@ import org.orekit.time.AbsoluteDate; public class LOSBuilder { /** Raw fixed ine-of-sights. */ - public final List<Vector3D> rawLOS; + private final List<Vector3D> rawLOS; /** Transforms to be applied. */ private final List<LOSTransform> transforms; @@ -54,7 +54,6 @@ public class LOSBuilder { */ public void addTransform(final LOSTransform transform) { transforms.add(transform); - } /** Build a list of transformed lines-of-sight. @@ -106,7 +105,6 @@ public class LOSBuilder { } return los.normalize(); } - } } diff --git a/src/main/java/org/orekit/rugged/los/LOSTransform.java b/src/main/java/org/orekit/rugged/los/LOSTransform.java index a628e82a26ad7764bf70eec02fc4f17efacdb1d1..a6f10ccf633d4f960840106a62e6be9ba2aa240f 100644 --- a/src/main/java/org/orekit/rugged/los/LOSTransform.java +++ b/src/main/java/org/orekit/rugged/los/LOSTransform.java @@ -31,4 +31,4 @@ interface LOSTransform { * @return transformed line-of-sight */ Vector3D transformLOS(int i, Vector3D los, AbsoluteDate date); -} \ No newline at end of file +} diff --git a/src/main/java/org/orekit/rugged/los/PolynomialRotation.java b/src/main/java/org/orekit/rugged/los/PolynomialRotation.java index 4447af9bfc00d27404e0bbc8bc7722624136c5d0..cc97a47fa235d3ff3dc7dd9ca79f87f01a387d3c 100644 --- a/src/main/java/org/orekit/rugged/los/PolynomialRotation.java +++ b/src/main/java/org/orekit/rugged/los/PolynomialRotation.java @@ -28,13 +28,13 @@ import org.orekit.time.AbsoluteDate; public class PolynomialRotation implements LOSTransform { /** Rotation axis. */ - final Vector3D axis; + private final Vector3D axis; /** Rotation angle polynomial. */ - final PolynomialFunction angle; + private final PolynomialFunction angle; /** Reference date for polynomial evaluation. */ - final AbsoluteDate referenceDate; + private final AbsoluteDate referenceDate; /** Simple constructor. * @param axis rotation axis @@ -52,8 +52,8 @@ public class PolynomialRotation implements LOSTransform { /** {@inheritDoc} */ @Override - public Vector3D transformLOS(int i, Vector3D los, AbsoluteDate date) { + public Vector3D transformLOS(final int i, final Vector3D los, final AbsoluteDate date) { return new Rotation(axis, angle.value(date.durationFrom(referenceDate))).applyTo(los); } - -} \ No newline at end of file + +} diff --git a/src/main/java/org/orekit/rugged/los/TimeDependentLOS.java b/src/main/java/org/orekit/rugged/los/TimeDependentLOS.java index 6e44fefc3837ad3493067ff067236ab45b9c8d3e..9effc6b0c70568fbbc08c0300216c827b6429cd8 100644 --- a/src/main/java/org/orekit/rugged/los/TimeDependentLOS.java +++ b/src/main/java/org/orekit/rugged/los/TimeDependentLOS.java @@ -17,7 +17,6 @@ package org.orekit.rugged.los; import org.apache.commons.math3.geometry.euclidean.threed.Vector3D; -import org.orekit.rugged.linesensor.LineSensor; import org.orekit.time.AbsoluteDate; /** Interface representing a line-of-sight which depends on time.