Exemplo n.º 1
0
        public void LineToTest()
        {
            var ray      = new Ray3D(new Point3D(0, 0, 0), UnitVector3D.ZAxis);
            var point3D  = new Point3D(1, 0, 0);
            var line3DTo = ray.ShortestLineTo(point3D);

            AssertGeometry.AreEqual(new Point3D(0, 0, 0), line3DTo.StartPoint);
            AssertGeometry.AreEqual(point3D, line3DTo.EndPoint, float.Epsilon);
        }
 public LineSegment3D LineTo()
 {
     return(Ray3D1.ShortestLineTo(Point3D));
 }