From 641a368f6dcff363c97e261951f8f85c4f082e95 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe <luc@orekit.org> Date: Mon, 5 Jan 2015 17:02:47 +0100 Subject: [PATCH] Updated FixedRotation constructor. --- src/site/markdown/tutorials/direct-location.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/site/markdown/tutorials/direct-location.md b/src/site/markdown/tutorials/direct-location.md index 096228a9..c5b951c9 100644 --- a/src/site/markdown/tutorials/direct-location.md +++ b/src/site/markdown/tutorials/direct-location.md @@ -49,6 +49,7 @@ For this we need the following packages import org.orekit.rugged.los.LOSBuilder; import org.orekit.rugged.los.FixedRotation; import org.orekit.rugged.los.TimeDependentLOS; + org.orekit.rugged.utils.ParameterType; The raw viewing direction of pixel i with respect to the instrument is defined by the vector: @@ -64,7 +65,7 @@ The instrument is oriented 10° off nadir around the X-axis, we need to rotate t direction to obtain the line of sight in the satellite frame LOSBuilder losBuilder = new LOSBuilder(rawDirs); - losBuilder.addTransform(new FixedRotation(new Rotation(Vector3D.PLUS_I, FastMath.toRadians(10)))); + losBuilder.addTransform(new FixedRotation(ParameterType.FIXED, new Rotation(Vector3D.PLUS_I, FastMath.toRadians(10)))); Here we have considered that the viewing directions are constant with time, it is also possible to have time-dependent lines-of-sight by using other transforms. It is also possible to append several -- GitLab