Documentation of 'math.geom2d.grid.TriangleGrid2D' Java class
TriangleGrid2D
math.geom2d.grid

Class TriangleGrid2D

  • All Implemented Interfaces:
    Grid2D


    public class TriangleGrid2D
    extends java.lang.Object
    implements Grid2D
    Defines a triangle grid, with various size and orientation. The grid contains triangle with all edges the same length.
    • 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 origin
        y0 - y-coord of grid origin
      • TriangleGrid2D

        public TriangleGrid2D(double x0,
                              double y0,
                              double s)
        Parameters:
        x0 - x-coord of grid origin
        y0 - y-coord of grid origin
        s - size of the triangle tile
      • TriangleGrid2D

        public TriangleGrid2D(double x0,
                              double y0,
                              double s,
                              double theta)
        Parameters:
        x0 - x-coord of grid origin
        y0 - y-coord of grid origin
        s - size of the triangle tile
        theta - 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 origin
        s - size of the triangle tile
      • TriangleGrid2D

        public TriangleGrid2D(Point2D point,
                              double s,
                              double theta)
        Parameters:
        point - the grid origin
        s - size of the triangle tile
        theta - 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()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.