PolygonZone
package com.skeletonarmy.marrow.zones
Overview
Usage
// --- Triangle defined by three corners ---
PolygonZone triangle = new PolygonZone(
new Point(0, 0),
new Point(12, 0),
new Point(12, 6)
);
// --- Rectangle defined by width and height ---
PolygonZone unitRect = new PolygonZone(10, 5);
// --- Rectangle centered at a point ---
PolygonZone centered = new PolygonZone(new Point(24, 24), 12, 6);
// --- Rotated rectangle centered at a point ---
PolygonZone rotated = new PolygonZone(new Point(24, 24), 12, 6, Math.toRadians(45));
// --- Thin rectangular line between two points with a thickness ---
PolygonZone line = new PolygonZone(new Point(4, 4), new Point(10, 10), 5);Unique Methods
Method
Description
Last updated