예제 #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);
 }