Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="tolerance"></param>
 /// <returns></returns>
 public bool ApproxEquals(ref Transform3d other, double tolerance = zMath.ZeroTolerance)
 {
     return
         (Translation.ApproxEquals(other.Translation, tolerance) &&
          Rotation.ApproxEquals(ref other.Rotation, tolerance) &&
          Scale.ApproxEquals(other.Scale, tolerance));
 }
Exemple #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="tolerance"></param>
 /// <returns></returns>
 public bool ApproxEquals(ref AxisAngle3d other, double tolerance = zMath.ZeroTolerance)
 {
     return
         (zMath.ApproxEquals(_angle, other._angle, tolerance) &&
          _axis.ApproxEquals(other._axis, tolerance));
 }
Exemple #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="tolerance"></param>
 /// <returns></returns>
 public bool ApproxEquals(ref Orient3d other, double tolerance = zMath.ZeroTolerance)
 {
     return
         (Translation.ApproxEquals(other.Translation, tolerance) &&
          Rotation.ApproxEquals(ref other.Rotation, tolerance));
 }
Exemple #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="tolerance"></param>
 /// <returns></returns>
 public bool ApproxEquals(ref OrthoBasis3d other, double tolerance = zMath.ZeroTolerance)
 {
     return
         (_x.ApproxEquals(other._x, tolerance) &&
          _y.ApproxEquals(other._y, tolerance));
 }