From 5cefa66fd4782e2ecf50770888e9ae043b79c1b9 Mon Sep 17 00:00:00 2001 From: Martin Miller Date: Sat, 25 Mar 2017 16:13:37 -0500 Subject: Update Body::S Change variable name to reflect that we are only using Pxx and not the full P matrix. --- src/body.cpp | 4 ++-- src/body.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/body.cpp b/src/body.cpp index a5c572a..83838a5 100644 --- a/src/body.cpp +++ b/src/body.cpp @@ -47,10 +47,10 @@ Body::vel ( const Matrix &v ) *-------------------------------------------------------------------------------------- */ Matrix -Body::S ( const Matrix &P ) +Body::S ( const Matrix &Pxx ) { Matrix S; - S << P(2,2); + S << Pxx(2,2); return S+R(); } /* ----- end of method Body::S ----- */ diff --git a/src/body.h b/src/body.h index 6c1268e..38497e6 100644 --- a/src/body.h +++ b/src/body.h @@ -38,7 +38,7 @@ class Body const Quaterniond &q, const double dt); Matrix Q(double dt); Matrix R(); - Matrix S(const Matrix &P); + Matrix S(const Matrix &Pxx); Matrix skewSymmetric(const Vector3d &x); void unicsv(); -- cgit v1.1