Beispiel #1
0
        public void ToArray_IsArray()
        {
            var vec = new float3(1, 2, 3);

            var actual = vec.ToArray();

            Assert.Equal(new float[] { 1, 2, 3 }, actual);
        }
Beispiel #2
0
 public ValObj(float3 val)
 {
     vS = null;
     aB = null;
     aI = null;
     aS = null;
     aF = val.ToArray();
 }
Beispiel #3
0
        public void PropertyValues()
        {
            var v    = new float3(-6.5f, 6.5f, 1.5f);
            var vals = v.Values;

            Assert.AreEqual(-6.5f, vals[0]);
            Assert.AreEqual(6.5f, vals[1]);
            Assert.AreEqual(1.5f, vals[2]);
            Assert.That(vals.SequenceEqual(v.ToArray()));
        }