Пример #1
0
 public virtual Bearing FinalBearingTo(GeoPoint that)
 {
     return Bearing.DecimalDegrees((Bearing.Between(that, this).DecimalDegrees() + 180) % 360);
 }
Пример #2
0
 public virtual Bearing BearingTo(GeoPoint that)
 {
     return Bearing.Between(this, that);
 }
Пример #3
0
 public virtual Distance DistanceTo(GeoPoint that)
 {
     return Distance.Between(this, that);
 }
Пример #4
0
 public static Distance Between(GeoPoint p1, GeoPoint p2)
 {
     return(new PointToPointDistance(p1, p2));
 }
Пример #5
0
 public PointToPointBearing(GeoPoint from, GeoPoint to)
 {
     this.from = from;
     this.to = to.ConvertTo(from.ReferenceEllipsoid);
 }
 public PointToPointBearing(GeoPoint from, GeoPoint to)
 {
     this.from = from;
     this.to = to.ConvertTo(from.ReferenceEllipsoid);
 }
 public PointToPointDistance(GeoPoint p1, GeoPoint p2)
 {
     this.p1 = p1;
     this.p2 = p2.ConvertTo(p1.ReferenceEllipsoid);
 }
Пример #8
0
 public virtual Bearing InitialBearingTo(GeoPoint that)
 {
     return(BearingTo(that));
 }
Пример #9
0
 public virtual Bearing FinalBearingTo(GeoPoint that)
 {
     return(Bearing.DecimalDegrees((Bearing.Between(that, this).DecimalDegrees() + 180) % 360));
 }
Пример #10
0
 public static Bearing Between(GeoPoint p1, GeoPoint p2)
 {
     return(new PointToPointBearing(p1, p2));
 }
Пример #11
0
 public virtual Bearing BearingTo(GeoPoint that)
 {
     return(Bearing.Between(this, that));
 }
 public PointToPointDistance(GeoPoint p1, GeoPoint p2)
 {
     this.p1 = p1;
     this.p2 = p2.ConvertTo(p1.ReferenceEllipsoid);
 }
Пример #13
0
 public Projection(GeoPoint from, Distance distance, Bearing heading)
 {
     this.from     = from;
     this.distance = distance;
     this.bearing  = heading;
 }
Пример #14
0
 public Projection(GeoPoint from, Distance distance, Bearing heading)
 {
     this.from = from;
     this.distance = distance;
     this.bearing = heading;
 }
Пример #15
0
 public virtual Bearing InitialBearingTo(GeoPoint that)
 {
     return BearingTo(that);
 }
Пример #16
0
 public virtual Distance DistanceTo(GeoPoint that)
 {
     return(Distance.Between(this, that));
 }
Пример #17
0
 public virtual GeoPoint MidpointTo(GeoPoint that)
 {
     return ((PointToPointDistance) Distance.Between(this, that)).Midpoint();
 }
Пример #18
0
 public virtual GeoPoint MidpointTo(GeoPoint that)
 {
     return(((PointToPointDistance)Distance.Between(this, that)).Midpoint());
 }
Пример #19
0
 public static Distance Between(GeoPoint p1, GeoPoint p2)
 {
     return new PointToPointDistance(p1, p2);
 }
Пример #20
0
 public static Bearing Between(GeoPoint p1, GeoPoint p2)
 {
     return new PointToPointBearing(p1, p2);
 }