math.geom2d.grid
Class TriangleGrid2D
- java.lang.Object
-
- math.geom2d.grid.TriangleGrid2D
-
-
Constructor Summary
Constructors Constructor and Description 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description Point2DgetClosestVertex(Point2D point)java.util.Collection<LineSegment2D>getEdges(Box2D box)Point2DgetOrigin()doublegetSize()doublegetTheta()PointSet2DgetVertices(Box2D box)voidsetAngle(double theta)Deprecated.grids are supposed to be immutable (0.8.0)voidsetOrigin(Point2D point)Deprecated.grids are supposed to be immutable (0.8.0)voidsetSize(double s)Deprecated.grids are supposed to be immutable (0.8.0)
-
-
-
Constructor Detail
-
TriangleGrid2D
public TriangleGrid2D()
-
TriangleGrid2D
public TriangleGrid2D(double s)
- Parameters:
s- size of the triangle tile
-
TriangleGrid2D
public TriangleGrid2D(double x0, double y0)- Parameters:
x0- x-coord of grid originy0- y-coord of grid origin
-
TriangleGrid2D
public TriangleGrid2D(double x0, double y0, double s)- Parameters:
x0- x-coord of grid originy0- y-coord of grid origins- size of the triangle tile
-
TriangleGrid2D
public TriangleGrid2D(double x0, double y0, double s, double theta)- Parameters:
x0- x-coord of grid originy0- y-coord of grid origins- size of the triangle tiletheta- orientation of the grid with horizontal
-
TriangleGrid2D
public TriangleGrid2D(Point2D point)
Assumes unit grid.- Parameters:
point- the grid origin
-
TriangleGrid2D
public TriangleGrid2D(Point2D point, double s)
- Parameters:
point- the grid origins- size of the triangle tile
-
TriangleGrid2D
public TriangleGrid2D(Point2D point, double s, double theta)
- Parameters:
point- the grid origins- size of the triangle tiletheta- orientation of the grid with horizontal
-
-
Method Detail
-
setOrigin
@Deprecated public void setOrigin(Point2D point)
Deprecated. grids are supposed to be immutable (0.8.0)
-
getSize
public double getSize()
-
setSize
@Deprecated public void setSize(double s)
Deprecated. grids are supposed to be immutable (0.8.0)
-
setAngle
@Deprecated public void setAngle(double theta)
Deprecated. grids are supposed to be immutable (0.8.0)
-
getTheta
public double getTheta()
-
getClosestVertex
public Point2D getClosestVertex(Point2D point)
- Specified by:
getClosestVertexin interfaceGrid2D
-
getEdges
public java.util.Collection<LineSegment2D> getEdges(Box2D box)
-
getVertices
public PointSet2D getVertices(Box2D box)
- Specified by:
getVerticesin interfaceGrid2D
-
-
DMelt 3.0 © DataMelt by jWork.ORG