Cleaned up unused code in Qt4 star browser. Switch to using new

UniversalCoord::toLy() method for calculating relative star positions.
sensor-dev
Chris Laurel 2009-07-17 02:35:24 +00:00
parent a5511ac191
commit f81650c69a
1 changed files with 1 additions and 12 deletions

View File

@ -247,23 +247,12 @@ int StarTableModel::columnCount(const QModelIndex&) const
}
static Vector3f toMicroLY(const Vector3f& p)
{
return p * 1e6f;
}
static Vector3f fromMicroLY(const Vector3f& p)
{
return p * 1e-6f;
}
StarPredicate::StarPredicate(Criterion _criterion,
const UniversalCoord& _observerPos) :
criterion(_criterion),
ucPos(_observerPos)
{
pos = toEigen((Point3f) ucPos) * 1.0e-6f;
pos = ucPos.toLy().cast<float>();
}