Пример #1
0
        public void FindRayFromRectangleCenterSideIntersection4()
        {
            var ray = CartesianUtils.FindRayFromRectangleCenterSideIntersection(new Rectangle(-50, -50, 100, 100), Math.PI + Math.PI / 2);

            Aver.AreEqual(0, ray.X);
            Aver.AreEqual(-50, ray.Y);
        }
Пример #2
0
        public void FindRayFromRectangleCenterSideIntersection1()
        {
            var ray = CartesianUtils.FindRayFromRectangleCenterSideIntersection(new Rectangle(-50, -50, 100, 100), 0D);

            Assert.AreEqual(50, ray.X);
            Assert.AreEqual(0, ray.Y);
        }