Example #1
0
        public void Clone()
        {
            LineShape line  = new LineShape(new Vector3(1, 2, 3), new Vector3(2, 3, 4).Normalized);
            LineShape clone = line.Clone() as LineShape;

            Assert.IsNotNull(clone);
            Assert.AreEqual(line.PointOnLine, clone.PointOnLine);
            Assert.AreEqual(line.Direction, clone.Direction);
            Assert.AreEqual(line.GetAabb(Pose.Identity).Minimum, clone.GetAabb(Pose.Identity).Minimum);
            Assert.AreEqual(line.GetAabb(Pose.Identity).Maximum, clone.GetAabb(Pose.Identity).Maximum);
        }
Example #2
-1
 public void Clone()
 {
     LineShape line = new LineShape(new Vector3F(1, 2, 3), new Vector3F(2, 3, 4).Normalized);
       LineShape clone = line.Clone() as LineShape;
       Assert.IsNotNull(clone);
       Assert.AreEqual(line.PointOnLine, clone.PointOnLine);
       Assert.AreEqual(line.Direction, clone.Direction);
       Assert.AreEqual(line.GetAabb(Pose.Identity).Minimum, clone.GetAabb(Pose.Identity).Minimum);
       Assert.AreEqual(line.GetAabb(Pose.Identity).Maximum, clone.GetAabb(Pose.Identity).Maximum);
 }