All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.luan.geometry.Shape Maven / Gradle / Ivy

Go to download

Simple geometry package for Java, implementing set operations and area calculation for Polygons.

There is a newer version: 1.5.4
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy