geomerative
public class RStrip extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
type |
RPoint[] |
vertices
Array of RPoint objects holding the vertices of the strip.
|
Constructor and Description |
---|
RStrip() |
RStrip(RStrip s)
Use this method to create a new strip.
|
Modifier and Type | Method and Description |
---|---|
void |
addVertex(float x,
float y) |
void |
addVertex(RPoint p)
Use this method to add new vertices to the strip.
|
int |
countVertices()
Use this method to count the number of vertices in the strip.
|
void |
draw(processing.core.PGraphics g)
Use this method to draw the strip.
|
RContour |
getBounds()
Use this method to get the bounding box of the strip.
|
RPoint[] |
getHandles()
Use this to get the vertices of the strip.
|
RPoint[] |
getPoints()
Use this to get the vertices of the strip.
|
void |
transform(RMatrix m)
Use this method to transform the strip.
|
public int type
public RPoint[] vertices
public RStrip(RStrip s)
s
- the object of which to make a copypublic RStrip()
public int countVertices()
public void draw(processing.core.PGraphics g)
g
- PGraphics, the graphics object on which to draw the strippublic void addVertex(RPoint p)
public void addVertex(float x, float y)
public RContour getBounds()
public RPoint[] getHandles()
public RPoint[] getPoints()
public void transform(RMatrix m)
m
- RMatrix, the matrix of the affine transformation to apply to the stripGeomerative by Ricard Marxer, http://www.ricardmarxer.com/geomerative/