Constructor and Description |
---|
Box(int x,
int y,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesIntersect(LineSegmentInt seg) |
Point2DInt |
getCenterPoint() |
int |
getCenterX() |
int |
getCenterY() |
Point2DInt[] |
getCorners() |
Point2DInt[] |
getCornersOfOneSide(LineSegmentInt seg,
int sgn) |
int |
getHeight() |
int |
getMaxX() |
int |
getMaxY() |
int |
getMinX() |
int |
getMinY() |
Point2DInt |
getPosition() |
int |
getWidth() |
int |
getX() |
int |
getY() |
Point2DInt[] |
intersect(LineSegmentInt seg) |
boolean |
intersectBox(Box other) |
void |
moveX(int delta) |
Box |
outerBox(int margin) |
String |
toString() |
public Point2DInt[] getCorners()
public Point2DInt[] getCornersOfOneSide(LineSegmentInt seg, int sgn)
public boolean doesIntersect(LineSegmentInt seg)
public Point2DInt[] intersect(LineSegmentInt seg)
public Box outerBox(int margin)
public Point2DInt getCenterPoint()
public boolean intersectBox(Box other)
public final int getX()
public final int getY()
public final int getWidth()
public final int getHeight()
public int getMinX()
public int getMinY()
public int getMaxX()
public int getMaxY()
public int getCenterX()
public int getCenterY()
public Point2DInt getPosition()
getPosition
in interface Pointable
Copyright © 2016. All Rights Reserved.