示例#1
0
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);
}
示例#2
0
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);
}
示例#3
0
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;
}
示例#4
0
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;
}