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); }
FlatGeoPoint FlatProjection::ProjectInteger(const GeoPoint &tp) const { assert(IsValid()); FlatPoint f = ProjectFloat(tp); return FlatGeoPoint(iround(f.x), iround(f.y)); }