Esempio n. 1
0
 /// <summary>
 /// Checks for near equality.
 /// </summary>
 /// <param name="c1">The first cylinder.</param>
 /// <param name="c2">The second cylinder.</param>
 /// <param name="eps">The maximum error tolerance.</param>
 /// <returns>Are they nearly equal.</returns>
 public static bool NearEqual(Cylindricald c1, Cylindricald c2, double eps)
 {
     return(Polard.NearEqual(c1.Polar, c2.Polar, eps) && MathHelper.NearEqual(c1.Z, c2.Z, eps));
 }
Esempio n. 2
0
        //#ifdef NearEqual


        /// <summary>
        /// Checks for near equality.
        /// </summary>
        /// <param name="c1">The first cylinder.</param>
        /// <param name="c2">The second cylinder.</param>
        /// <returns>Are they nearly equal.</returns>
        public static bool NearEqual(Cylindricald c1, Cylindricald c2)
        {
            return(Polard.NearEqual(c1.Polar, c2.Polar) && MathHelper.NearEqual(c1.Z, c2.Z));
        }