|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.grid.SquareGrid2D
public class SquareGrid2D
Defines a square grid, which can have different size in each direction. The grid is always parallel to the main axes.
Constructor Summary | |
---|---|
SquareGrid2D()
|
|
SquareGrid2D(double s)
|
|
SquareGrid2D(double sx,
double sy)
|
|
SquareGrid2D(double x0,
double y0,
double s)
|
|
SquareGrid2D(double x0,
double y0,
double sx,
double sy)
|
|
SquareGrid2D(Point2D origin)
|
|
SquareGrid2D(Point2D origin,
double s)
|
|
SquareGrid2D(Point2D origin,
double sx,
double sy)
|
Method Summary | |
---|---|
Point2D |
getClosestVertex(Point2D point)
|
java.util.Collection<LineSegment2D> |
getEdges(Box2D box)
|
Point2D |
getOrigin()
|
double |
getSizeX()
|
double |
getSizeY()
|
PointSet2D |
getVertices(Box2D box)
|
void |
setOrigin(Point2D point)
Deprecated. grids are supposed to be immutable (0.8.0) |
void |
setSize(double s)
Deprecated. grids are supposed to be immutable (0.8.0) |
void |
setSize(double sx,
double sy)
Deprecated. grids are supposed to be immutable (0.8.0) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SquareGrid2D()
public SquareGrid2D(Point2D origin)
public SquareGrid2D(Point2D origin, double s)
public SquareGrid2D(Point2D origin, double sx, double sy)
public SquareGrid2D(double x0, double y0, double s)
public SquareGrid2D(double s)
public SquareGrid2D(double sx, double sy)
public SquareGrid2D(double x0, double y0, double sx, double sy)
Method Detail |
---|
@Deprecated public void setOrigin(Point2D point)
public Point2D getOrigin()
getOrigin
in interface Grid2D
public double getSizeX()
public double getSizeY()
@Deprecated public void setSize(double s)
@Deprecated public void setSize(double sx, double sy)
public Point2D getClosestVertex(Point2D point)
getClosestVertex
in interface Grid2D
public java.util.Collection<LineSegment2D> getEdges(Box2D box)
getEdges
in interface Grid2D
public PointSet2D getVertices(Box2D box)
getVertices
in interface Grid2D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |