Esempio n. 1
0
        public void ElementConstructor()
        {
            var expected = GetTestVector();
            var actual   = new NVector3d(expected.X, expected.Y, expected.Z);

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

            Assert.AreEqual("(1, 2, 3)", vector.ToString(), "tostring");
        }