From 0375c38548eccc6e7fe2fc43f8b8d475492a2b10 Mon Sep 17 00:00:00 2001
From: Luc Maisonobe <luc@orekit.org>
Date: Tue, 24 Jun 2014 14:07:43 +0200
Subject: [PATCH] Added access to transforms at Rugged API level.

---
 .../java/org/orekit/rugged/api/Rugged.java    | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/core/src/main/java/org/orekit/rugged/api/Rugged.java b/core/src/main/java/org/orekit/rugged/api/Rugged.java
index 74663b29..09e5e998 100644
--- a/core/src/main/java/org/orekit/rugged/api/Rugged.java
+++ b/core/src/main/java/org/orekit/rugged/api/Rugged.java
@@ -645,6 +645,36 @@ public class Rugged {
 
     }
 
+    /** Get transform from spacecraft to inertial frame.
+     * @param date date of the transform
+     * @return transform from spacecraft to inertial frame
+     * @exception RuggedException if spacecraft position or attitude cannot be computed at date
+     */
+    public Transform getScToInertial(final AbsoluteDate date)
+        throws RuggedException {
+        return scToBody.getScToInertial(date);
+    }
+
+    /** Get transform from inertial frame to observed body frame.
+     * @param date date of the transform
+     * @return transform from inertial frame to observed body frame
+     * @exception RuggedException if frames cannot be computed at date
+     */
+    public Transform getInertialToBody(final AbsoluteDate date)
+        throws RuggedException {
+        return scToBody.getInertialToBody(date);
+    }
+
+    /** Get transform from observed body frame to inertial frame.
+     * @param date date of the transform
+     * @return transform from observed body frame to inertial frame
+     * @exception RuggedException if frames cannot be computed at date
+     */
+    public Transform getBodyToInertial(final AbsoluteDate date)
+        throws RuggedException {
+        return scToBody.getBodyToInertial(date);
+    }
+
     /** Get a sensor.
      * @param sensorName sensor name
      * @return selected sensor
-- 
GitLab