
xyz.luan.geometry.Shape Maven / Gradle / Ivy
package xyz.luan.geometry;
import java.util.List;
import javafx.scene.canvas.GraphicsContext;
public interface Shape {
public double area();
public Rectangle getBounds();
public void draw(GraphicsContext g);
public void fill(GraphicsContext g);
public void translate(Point vector);
public Shape intersection(Shape shape);
public List intersections(Line line);
public List sides();
public Shape diff(Shape shape);
public Shape xor(Shape shape);
public Shape union(Shape shape);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy