Exemplo n.º 1
0
        /// <summary>
        ///     Get curve as a culture invariant string.
        /// </summary>
        /// <returns>The parameters describing the curve as culture invariant string</returns>
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.Append("s=");
            builder.Append(EllipsoidalDistance.ToString(NumberFormatInfo.InvariantInfo));
            builder.Append(";a12=");
            builder.Append(Azimuth);
            builder.Append(";a21=");
            builder.Append(ReverseAzimuth);
            builder.Append(";");

            return(builder.ToString());
        }
Exemplo n.º 2
0
 /// <summary>
 ///     Test another curve for equality
 /// </summary>
 /// <param name="other">The other geodetic curve</param>
 /// <returns>True if they are the same</returns>
 public bool Equals(GeodeticCurve other)
 {
     return(EllipsoidalDistance.IsApproximatelyEqual(other.EllipsoidalDistance) && Azimuth.Equals(other.Azimuth) &&
            Calculator.Equals(other.Calculator));
 }