Ejemplo n.º 1
0
 public void Clone()
 {
     BoxShape box = new BoxShape(0.1234f, 2.345f, 5.43f);
       BoxShape clone = box.Clone() as BoxShape;
       Assert.IsNotNull(clone);
       Assert.AreEqual(box.WidthX, clone.WidthX);
       Assert.AreEqual(box.WidthY, clone.WidthY);
       Assert.AreEqual(box.WidthZ, clone.WidthZ);
       Assert.AreEqual(box.GetAabb(Pose.Identity).Minimum, clone.GetAabb(Pose.Identity).Minimum);
       Assert.AreEqual(box.GetAabb(Pose.Identity).Maximum, clone.GetAabb(Pose.Identity).Maximum);
 }
Ejemplo n.º 2
0
        public void Clone()
        {
            BoxShape box   = new BoxShape(0.1234f, 2.345f, 5.43f);
            BoxShape clone = box.Clone() as BoxShape;

            Assert.IsNotNull(clone);
            Assert.AreEqual(box.WidthX, clone.WidthX);
            Assert.AreEqual(box.WidthY, clone.WidthY);
            Assert.AreEqual(box.WidthZ, clone.WidthZ);
            Assert.AreEqual(box.GetAabb(Pose.Identity).Minimum, clone.GetAabb(Pose.Identity).Minimum);
            Assert.AreEqual(box.GetAabb(Pose.Identity).Maximum, clone.GetAabb(Pose.Identity).Maximum);
        }