| Modifier and Type | Method and Description |
|---|---|
java.lang.Float |
elementSize()
Calculates and returns the size of any element of the grid.
|
java.lang.Float |
getAngle(java.lang.Integer index)
Returns the angle of an element with the given index.
|
processing.core.PVector[] |
getCoordinates()
Returns all positions of all elements in the grid.
|
java.lang.Float |
getHeight()
Returns the current height of the grid.
|
java.lang.Float |
getHeight(java.lang.Integer i)
Returns the current height of the grid.
|
java.lang.Float |
getPadding()
Returns the space between the elements of the grid.
|
java.lang.Float |
getRadius()
Returns the radius of this grid (use this function, when this grid is a
circle and not an ellipse).
|
java.lang.Float |
getRadiusX()
Returns the horizontal radius of this grid.
|
java.lang.Float |
getRadiusY()
Returns the vertical radius of this grid.
|
java.lang.Float |
getStartAngle()
Returns the angle that describes the position of the first element of
this grid.
|
java.lang.Float |
getWidth()
Returns the width of the element at the given index.
|
java.lang.Float |
getWidth(java.lang.Integer i)
Returns the current width of the grid.
|
java.lang.Float |
getX()
Returns the current x-position of the grid.
|
java.lang.Float |
getX(java.lang.Integer index)
Returns the x-position of the element at the given index.
|
java.lang.Float |
getY()
Returns the current y-position of the grid.
|
java.lang.Float |
getY(java.lang.Integer index)
Returns the y-position of the element at the given index.
|
EllipseGrid |
setPadding(float padding)
Sets the padding (space between elements of the grid).
|
EllipseGrid |
setRadius(float r)
Sets the radius for this grid.
|
EllipseGrid |
setRadiusX(float r)
Sets the horizontal radius for this grid.
|
EllipseGrid |
setRadiusY(float r)
Sets the vertical radius for this grid.
|
EllipseGrid |
setSize(java.lang.Integer size)
Sets the number of elements for this grid.
|
EllipseGrid |
setStartAngle(float startAngle)
Set the position of the first element of the grid.
|
EllipseGrid |
setX(float x)
Set to x-position of the grid.
|
EllipseGrid |
setY(float y)
Set to y-position of the grid.
|
java.lang.Integer |
size()
Returns the number of elements in the grid.
|
public EllipseGrid setX(float x)
RGridpublic EllipseGrid setY(float y)
RGridpublic EllipseGrid setRadius(float r)
r - The new radius of this grid.public EllipseGrid setRadiusX(float r)
r - The new horizontal radius of this grid.public EllipseGrid setRadiusY(float r)
r - The new vertical radius of this grid.public EllipseGrid setSize(java.lang.Integer size)
size - The new number of elements for this grid (>= 1).public EllipseGrid setStartAngle(float startAngle)
startAngle - The angle which describes the position of the first element
(in radian).public EllipseGrid setPadding(float padding)
setPadding in interface RGridpadding - The new padding of this grid [0, 1].public processing.core.PVector[] getCoordinates()
RGridgetCoordinates in interface RGridpublic java.lang.Float getX()
RGridpublic java.lang.Float getWidth()
RGridpublic java.lang.Float getHeight()
RGridpublic java.lang.Float getY()
RGridpublic java.lang.Float getStartAngle()
public java.lang.Float getRadius()
public java.lang.Float getRadiusX()
public java.lang.Float getRadiusY()
public java.lang.Float getPadding()
getPadding in interface RGridpublic java.lang.Integer size()
RGrid
for (int i = 0; i < myGrid.size(); i++) {
float x = myGrid.getX(i);
float y = myGrid.getY(i):
}
public java.lang.Float getAngle(java.lang.Integer index)
index - The index of the element [0, size()]public java.lang.Float getX(java.lang.Integer index)
RGrid
for (int i = 0; i < myGrid.size(); i++) {
float x = myGrid.getX(i);
float y = myGrid.getY(i):
}
public java.lang.Float getY(java.lang.Integer index)
RGrid
for (int i = 0; i < myGrid.size(); i++) {
float x = myGrid.getX(i);
float y = myGrid.getY(i):
}
public java.lang.Float elementSize()
public java.lang.Float getWidth(java.lang.Integer i)
RGrid