public virtual Bearing FinalBearingTo(GeoPoint that) { return Bearing.DecimalDegrees((Bearing.Between(that, this).DecimalDegrees() + 180) % 360); }
public virtual Bearing BearingTo(GeoPoint that) { return Bearing.Between(this, that); }
public virtual Distance DistanceTo(GeoPoint that) { return Distance.Between(this, that); }
public static Distance Between(GeoPoint p1, GeoPoint p2) { return(new PointToPointDistance(p1, p2)); }
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); }
public virtual Bearing InitialBearingTo(GeoPoint that) { return(BearingTo(that)); }
public virtual Bearing FinalBearingTo(GeoPoint that) { return(Bearing.DecimalDegrees((Bearing.Between(that, this).DecimalDegrees() + 180) % 360)); }
public static Bearing Between(GeoPoint p1, GeoPoint p2) { return(new PointToPointBearing(p1, p2)); }
public virtual Bearing BearingTo(GeoPoint that) { return(Bearing.Between(this, that)); }
public Projection(GeoPoint from, Distance distance, Bearing heading) { this.from = from; this.distance = distance; this.bearing = heading; }
public virtual Bearing InitialBearingTo(GeoPoint that) { return BearingTo(that); }
public virtual Distance DistanceTo(GeoPoint that) { return(Distance.Between(this, that)); }
public virtual GeoPoint MidpointTo(GeoPoint that) { return ((PointToPointDistance) Distance.Between(this, that)).Midpoint(); }
public virtual GeoPoint MidpointTo(GeoPoint that) { return(((PointToPointDistance)Distance.Between(this, that)).Midpoint()); }
public static Distance Between(GeoPoint p1, GeoPoint p2) { return new PointToPointDistance(p1, p2); }
public static Bearing Between(GeoPoint p1, GeoPoint p2) { return new PointToPointBearing(p1, p2); }