public void ElementConstructor() { var expected = GetTestVector(); var actual = new NVector3d(expected.X, expected.Y, expected.Z); Asserts.AreEqual(expected, actual, "ctor 1"); }
public NQuaterniond(NVector3d vectorPart, double scalarPart) { X = vectorPart.X; Y = vectorPart.Y; Z = vectorPart.Z; W = scalarPart; }
public void ToStringTest() { var vector = new NVector3d(1, 2, 3); Assert.AreEqual("(1, 2, 3)", vector.ToString(), "tostring"); }