public void VctrMovementRelativeTest1() { Vctr vector = new Vctr(); vector.Move("X", 1.2); vector.Move("Y", -13.5); vector.Move("Z", 1.3); Assert.IsTrue(vector.Equals(1.2, -13.5, 1.3)); }
public void VctrMovementRelativeTest2() { Vctr vector = new Vctr(0, 23.5, -2.3); vector.Move("X", 1.2); vector.Move("Y", -13.5); vector.Move("Z", 1.3); Assert.IsTrue(vector.Equals(1.2, 10.0, -1.0)); }
public void VctrMovementAbsoluteTest2() { Vctr vector = new Vctr(0, 23.5, -2.3); vector.Move("X", 0.5, false); vector.Move("Y", -2.3, false); vector.Move("Z", -9.7, false); Assert.IsTrue(vector.Equals(0.5, -2.3, -9.7)); }