| Package | Description |
|---|---|
| com.badlogic.gdx.maps.objects | |
| com.badlogic.gdx.math |
| Modifier and Type | Method and Description |
|---|---|
Polygon |
PolygonMapObject.getPolygon() |
| Modifier and Type | Method and Description |
|---|---|
void |
PolygonMapObject.setPolygon(Polygon polygon) |
| Constructor and Description |
|---|
PolygonMapObject(Polygon polygon) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Intersector.intersectLinePolygon(Vector2 p1,
Vector2 p2,
Polygon polygon)
Check whether the given line and
Polygon intersect. |
static boolean |
Intersector.intersectPolygons(Polygon p1,
Polygon p2,
Polygon overlap)
Intersects two convex polygons with clockwise vertices and sets the overlap polygon resulting from the intersection.
|
static boolean |
Intersector.intersectSegmentPolygon(Vector2 p1,
Vector2 p2,
Polygon polygon)
Check whether the given line segment and
Polygon intersect. |
static boolean |
Intersector.overlapConvexPolygons(Polygon p1,
Polygon p2)
Check whether specified convex polygons overlap (clockwise or counter-clockwise wound doesn't matter).
|
static boolean |
Intersector.overlapConvexPolygons(Polygon p1,
Polygon p2,
Intersector.MinimumTranslationVector mtv)
Check whether convex polygons overlap (clockwise or counter-clockwise wound doesn't matter).
|
Copyright © 2021. All rights reserved.