Fixed incorrect bounding radius calculation for position+velocity trajectories.

ver1_6_1
Chris Laurel 2008-04-04 01:40:43 +00:00
parent dcb255db2a
commit ee2209c1d9
1 changed files with 1 additions and 1 deletions

View File

@ -450,7 +450,7 @@ template <typename T> SampledOrbitXYZV<T>::~SampledOrbitXYZV()
// Velocity in km/Julian day
template <typename T> void SampledOrbitXYZV<T>::addSample(double t, const Vec3d& position, const Vec3d& velocity)
{
double r = sqrt(position.length());
double r = position.length();
if (r > boundingRadius)
boundingRadius = r;