summaryrefslogtreecommitdiff
path: root/src/body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/body.cpp')
-rw-r--r--src/body.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/body.cpp b/src/body.cpp
index 041d971..1e1f57d 100644
--- a/src/body.cpp
+++ b/src/body.cpp
@@ -251,3 +251,16 @@ Body::vel ( )
return X.segment<3>(3);
} /* ----- end of method Body::vel ----- */
+Matrix<double,9,1>
+Body::asVector ( )
+{
+ return X;
+} /* ----- end of method Body::asVector ----- */
+
+void
+Body::asVector ( const Matrix<double,9,1> &m )
+{
+ X = m;
+ return ;
+} /* ----- end of method Body::asVector ----- */
+