@Test public void testIsLineIntersectingShape() { ICircle circle = Circle.createCircle(Vector2.fromXY(1, 1), 1); Line line = Line.fromDirection(Vector2.fromXY(0, 0), Vector2.fromXY(1, 1)); Assert.assertEquals(true, circle.isIntersectingWithLine(line)); Line line3 = Line.fromDirection(Vector2.fromXY(-1, 1), Vector2.fromXY(1, 0)); Assert.assertEquals(true, circle.isIntersectingWithLine(line3)); Line line2 = Line.fromDirection(Vector2f.ZERO_VECTOR, Vector2.fromXY(-1, 1)); Assert.assertEquals(false, circle.isIntersectingWithLine(line2)); }
public static ICircle createCircle(final IVector2 center, final double radius) { return new Circle(center, radius); }
Circle extends ACircle { public static ICircle createCircle(final IVector2 center, final double radius) { return new Circle(center, radius); } }
Circle extends ACircle { public static ICircle createCircle(final IVector2 center, final double radius) { return new Circle(center, radius); } protected  Circle(); protected  Circle(final ICircle circle); protected  Circle(final IVector2 center, final double radius); }
Circle extends ACircle { public static ICircle createCircle(final IVector2 center, final double radius) { return new Circle(center, radius); } protected  Circle(); protected  Circle(final ICircle circle); protected  Circle(final IVector2 center, final double radius); static ICircle from2Points(final IVector2 p1, final IVector2 p2); static Optional<ICircle> from3Points(final IVector2 p1, final IVector2 p2, final IVector2 p3); static Optional<ICircle> fromNPoints(final List<IVector2> points); static Optional<ICircle> hullCircle(final List<IVector2> points); static ICircle createCircle(final IVector2 center, final double radius); @Override ICircle withMargin(final double margin); @Override ICircle mirror(); @Override double radius(); @Override IVector2 center(); @Override final boolean equals(final Object o); @Override final int hashCode(); @Override String toString(); }
Circle extends ACircle { public static ICircle createCircle(final IVector2 center, final double radius) { return new Circle(center, radius); } protected  Circle(); protected  Circle(final ICircle circle); protected  Circle(final IVector2 center, final double radius); static ICircle from2Points(final IVector2 p1, final IVector2 p2); static Optional<ICircle> from3Points(final IVector2 p1, final IVector2 p2, final IVector2 p3); static Optional<ICircle> fromNPoints(final List<IVector2> points); static Optional<ICircle> hullCircle(final List<IVector2> points); static ICircle createCircle(final IVector2 center, final double radius); @Override ICircle withMargin(final double margin); @Override ICircle mirror(); @Override double radius(); @Override IVector2 center(); @Override final boolean equals(final Object o); @Override final int hashCode(); @Override String toString();  }