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