Class Lattice2D.PolygonBasis
java.lang.Object
|
+--Lattice2D.PolygonBasis
- Enclosing class:
- Lattice2D
- public class Lattice2D.PolygonBasis
- extends java.lang.Object
- implements Lattice2D.Basis
Polygon-based implementation of a basis
|
Field Summary |
(package private) int[] |
x
|
(package private) int[] |
y
|
|
Method Summary |
void |
paint(java.awt.Graphics g,
int cx,
int cy)
Requests that the basis paint itself |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
x
int[] x
y
int[] y
Lattice2D.PolygonBasis
public Lattice2D.PolygonBasis(int nPoints,
int r,
double rotation)
- Creates a new polygon basis. Points are distributed as nth
(complex) roots of unity, then scaled and rotated as appropriate.
- Parameters:
nPoints - The number of pointsr - The distance of each point from the centrerotation - A rotating factor
Lattice2D.PolygonBasis
public Lattice2D.PolygonBasis(int nPoints,
int r)
- Creates a new polygon basis. Points are distributed as nth
(complex) roots of unity, then scaled as appropriate.
- Parameters:
nPoints - The number of pointsr - The distance of each point from the centre
paint
public void paint(java.awt.Graphics g,
int cx,
int cy)
- Description copied from interface: Lattice2D.Basis
- Requests that the basis paint itself
- Specified by:
- paint in interface Lattice2D.Basis
- Tags copied from interface: Lattice2D.Basis
- Parameters:
g - The Graphics surface on which to paintcx - The x coordinate (in pixels) at which the
basis should be paintedcy - The y coordinate (in pixels) at which the
basis should be painted