fixed TaskProjection::fproject_range(const GeoPoint &tp, const fixed range) const { GeoPoint fr = ::FindLatitudeLongitude(tp, Angle::native(fixed_zero), range); FlatPoint f = fproject(fr); FlatPoint p = fproject(tp); return fabs(f.y-p.y); }
fixed TaskProjection::fproject_range(const GeoPoint &tp, const fixed range) const { assert(initialised); GeoPoint fr = ::FindLatitudeLongitude(tp, Angle::zero(), range); FlatPoint f = fproject(fr); FlatPoint p = fproject(tp); return fabs(f.y - p.y); }
FlatGeoPoint TaskProjection::project(const GeoPoint& tp) const { FlatPoint f = fproject(tp); FlatGeoPoint fp; fp.Longitude = (int)(f.x+fixed_half); fp.Latitude = (int)(f.y+fixed_half); return fp; }
FlatGeoPoint TaskProjection::project(const GeoPoint& tp) const { assert(initialised); FlatPoint f = fproject(tp); FlatGeoPoint fp; fp.Longitude = iround(f.x); fp.Latitude = iround(f.y); return fp; }