Example #1
0
 public void Clone()
 {
     CircleShape circle = new CircleShape(1.23f);
       CircleShape clone = circle.Clone() as CircleShape;
       Assert.IsNotNull(clone);
       Assert.AreEqual(circle.Radius, clone.Radius);
       Assert.AreEqual(circle.GetAabb(Pose.Identity).Minimum, clone.GetAabb(Pose.Identity).Minimum);
       Assert.AreEqual(circle.GetAabb(Pose.Identity).Maximum, clone.GetAabb(Pose.Identity).Maximum);
 }
Example #2
0
        public void Clone()
        {
            CircleShape circle = new CircleShape(1.23f);
            CircleShape clone  = circle.Clone() as CircleShape;

            Assert.IsNotNull(clone);
            Assert.AreEqual(circle.Radius, clone.Radius);
            Assert.AreEqual(circle.GetAabb(Pose.Identity).Minimum, clone.GetAabb(Pose.Identity).Minimum);
            Assert.AreEqual(circle.GetAabb(Pose.Identity).Maximum, clone.GetAabb(Pose.Identity).Maximum);
        }