Esempio n. 1
0
fixed
FlatProjection::ProjectRangeFloat(const GeoPoint &tp,
                                  const fixed range) const
{
  assert(IsValid());

  GeoPoint fr = ::FindLatitudeLongitude(tp, Angle::Zero(), range);
  FlatPoint f = ProjectFloat(fr);
  FlatPoint p = ProjectFloat(tp);
  return fabs(f.y - p.y);
}
Esempio n. 2
0
FlatGeoPoint
FlatProjection::ProjectInteger(const GeoPoint &tp) const
{
    assert(IsValid());

    FlatPoint f = ProjectFloat(tp);
    return FlatGeoPoint(iround(f.x), iround(f.y));
}