Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
Point2D |
getClosestVertex(Point2D point) |
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)
|
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)
@Deprecated public void setOrigin(Point2D point)
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 Collection<LineSegment2D> getEdges(Box2D box)
public PointSet2D getVertices(Box2D box)
getVertices
in interface Grid2D
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.