Example #1
0
        public void CoordinateSystem3DTest_003()
        {
            var cs1cad = new CoordinateSystem3D(new Vector3D(-1, 77, .75),
                                                new Vector3D(0, 0, 1),
                                                new Vector3D(.619, -.785, 0),
                                                new Vector3D(.785, .619, 0));

            var cs2cad = new CoordinateSystem3D(new Vector3D(-20.74, 55.485, 0),
                                                new Vector3D(0, 0, 1),
                                                new Vector3D(.619, -.785, 0),
                                                new Vector3D(.785, .619, 0));

            var delta = new Vector3D(-19.74, -21.515, -0.75);

            Assert.True(cs1cad.Move(delta).Equals(1e-3, cs2cad));
        }
Example #2
0
 public Arc3D Move(Vector3D delta)
 {
     return(new Arc3D(CS.Move(delta), Radius, AngleStartRad, AngleEndRad));
 }
Example #3
0
 /// <summary>
 /// create an arc copy with origin moved
 /// </summary>
 /// <param name="delta">new arc origin delta</param>
 public Arc3D Move(double tol_len, Vector3D delta)
 {
     return(new Arc3D(tol_len, CS.Move(delta), Radius, AngleStart, AngleEnd));
 }