Exemplo n.º 1
0
        public IntersectionResult GetRayCircleIntersection(double x1, double y1, double x2, double y2, double xc, double yc, double r)
        {
            var ray    = new Ray(new Vector2(x1, y1), new Vector2(x2, y2));
            var circle = new Circle(xc, yc, r);

            return(GeometryMethods.GetRayCircleIntersection(ray, circle, out var _));
        }