|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.grid.TriangleGrid2D
public class TriangleGrid2D
Defines a triangle grid, with various size and orientation. The grid contains triangle with all edges the same length.
Constructor Summary | |
---|---|
TriangleGrid2D()
|
|
TriangleGrid2D(double s)
|
|
TriangleGrid2D(double x0,
double y0)
|
|
TriangleGrid2D(double x0,
double y0,
double s)
|
|
TriangleGrid2D(double x0,
double y0,
double s,
double theta)
|
|
TriangleGrid2D(Point2D point)
Assumes unit grid. |
|
TriangleGrid2D(Point2D point,
double s)
|
|
TriangleGrid2D(Point2D point,
double s,
double theta)
|
Method Summary | |
---|---|
Point2D |
getClosestVertex(Point2D point)
|
java.util.Collection<LineSegment2D> |
getEdges(Box2D box)
|
Point2D |
getOrigin()
|
double |
getSize()
|
double |
getTheta()
|
PointSet2D |
getVertices(Box2D box)
|
void |
setAngle(double theta)
Deprecated. grids are supposed to be immutable (0.8.0) |
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) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TriangleGrid2D()
public TriangleGrid2D(double s)
s
- size of the triangle tilepublic TriangleGrid2D(double x0, double y0)
x0
- x-coord of grid originy0
- y-coord of grid originpublic TriangleGrid2D(double x0, double y0, double s)
x0
- x-coord of grid originy0
- y-coord of grid origins
- size of the triangle tilepublic TriangleGrid2D(double x0, double y0, double s, double theta)
x0
- x-coord of grid originy0
- y-coord of grid origins
- size of the triangle tiletheta
- orientation of the grid with horizontalpublic TriangleGrid2D(Point2D point)
point
- the grid originpublic TriangleGrid2D(Point2D point, double s)
point
- the grid origins
- size of the triangle tilepublic TriangleGrid2D(Point2D point, double s, double theta)
point
- the grid origins
- size of the triangle tiletheta
- orientation of the grid with horizontalMethod Detail |
---|
@Deprecated public void setOrigin(Point2D point)
public Point2D getOrigin()
getOrigin
in interface Grid2D
public double getSize()
@Deprecated public void setSize(double s)
@Deprecated public void setAngle(double theta)
public double getTheta()
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 |