Cleaned up unused code in Qt4 star browser. Switch to using new
UniversalCoord::toLy() method for calculating relative star positions.sensor-dev
parent
a5511ac191
commit
f81650c69a
|
@ -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,
|
StarPredicate::StarPredicate(Criterion _criterion,
|
||||||
const UniversalCoord& _observerPos) :
|
const UniversalCoord& _observerPos) :
|
||||||
criterion(_criterion),
|
criterion(_criterion),
|
||||||
ucPos(_observerPos)
|
ucPos(_observerPos)
|
||||||
{
|
{
|
||||||
pos = toEigen((Point3f) ucPos) * 1.0e-6f;
|
pos = ucPos.toLy().cast<float>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue