Skip to content

Add intersection methods to Rectangle2D, Rectangle2F and Rectangle2I #6

@macroing

Description

@macroing

Add static intersection methods to the Rectangle2D, Rectangle2F and Rectangle2I classes.

These methods should take two instances of the same Rectangle2* type as parameters and return an Optional<Polygon2*> with the optional intersection.

They previously had methods returning an Optional<Rectangle2*>. This only works if both are axis-aligned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions