Package | Description |
---|---|
org.mini2Dx.core.engine | |
org.mini2Dx.core.geom | |
org.mini2Dx.core.quadtree |
Modifier and Type | Interface and Description |
---|---|
interface |
PositionChangeListener<T extends Positionable>
A common interface for implementing position listeners
|
Modifier and Type | Interface and Description |
---|---|
interface |
Parallelogram
A common interface for parallelogram implementations
|
interface |
Shape
A common interface for shapes
|
Modifier and Type | Method and Description |
---|---|
<T extends Positionable> |
Positionable.addPostionChangeListener(PositionChangeListener<T> listener)
Adds a
PositionChangeListener to be notified of coordinate
changes |
<T extends Positionable> |
Positionable.removePositionChangeListener(PositionChangeListener<T> listener)
Removes a
PositionChangeListener to stop it being notified of
coordinate changes |
Modifier and Type | Method and Description |
---|---|
boolean |
Parallelogram.contains(Positionable positionable)
Returns if the specified
Positionable is contained within this
shape |
float |
Positionable.getDistanceTo(Positionable positionable)
Returns this distance between this object's x,y coordinates and the
provided
Positionable 's xy coordinates |
Modifier and Type | Class and Description |
---|---|
class |
Circle
Implements a circle
|
class |
Point
Extends
Vector2 with some utility methods |
class |
Rectangle
Implements a rotatable rectangle.
|
Modifier and Type | Method and Description |
---|---|
<T extends Positionable> |
Rectangle.addPostionChangeListener(PositionChangeListener<T> listener) |
<T extends Positionable> |
Point.addPostionChangeListener(PositionChangeListener<T> listener) |
<T extends Positionable> |
Circle.addPostionChangeListener(PositionChangeListener<T> listener) |
<T extends Positionable> |
Rectangle.removePositionChangeListener(PositionChangeListener<T> listener) |
<T extends Positionable> |
Point.removePositionChangeListener(PositionChangeListener<T> listener) |
<T extends Positionable> |
Circle.removePositionChangeListener(PositionChangeListener<T> listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
Rectangle.contains(Positionable positionable) |
float |
Rectangle.getDistanceTo(Positionable positionable) |
float |
Point.getDistanceTo(Positionable positionable) |
float |
Circle.getDistanceTo(Positionable positionable) |
Modifier and Type | Class and Description |
---|---|
class |
Quad<T extends Positionable>
Implements a point quad
|
Modifier and Type | Class and Description |
---|---|
class |
Quad<T extends Positionable>
Implements a point quad
|
class |
RegionQuad<T extends Parallelogram>
Implements a region quad
|
Copyright © 2014. All rights reserved.