示例#1
0
        public void RayProjectionToPlaneTest()
        {
            Plane3d s = new Plane3d(0, 0, 1, 0);
            Ray3d   r = new Ray3d(new Point3d(1, 1, 1), new Vector3d(1, 1, 1));

            Assert.IsTrue((Ray3d)r.ProjectionTo(s) == new Ray3d(new Point3d(1, 1, 0), new Vector3d(1, 1, 0)));
        }