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); }
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); }