|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vormplus.shapeLib.BasicShape
org.vormplus.shapeLib.polygons.RegularPolygon
public class RegularPolygon
Constructor Summary | |
---|---|
RegularPolygon(processing.core.PApplet _p)
|
Method Summary | |
---|---|
float |
area(int numVertices,
float radius)
Function to calculate the area of the regular polygon. |
float |
externalAngle(int numVertices)
Function to calculate the external angle of the regular polygon |
float |
internalAngle(int numVertices)
Function to calculate the internal angle of the regular polygon |
float |
perimeter(processing.core.PVector[] vertices)
Function to calculate the internal angle of the regular polygon |
void |
render(processing.core.PVector[] vertices)
Renders the Polygon to the screen. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegularPolygon(processing.core.PApplet _p)
Method Detail |
---|
public void render(processing.core.PVector[] vertices)
public float area(int numVertices, float radius)
public float perimeter(processing.core.PVector[] vertices)
public float internalAngle(int numVertices)
public float externalAngle(int numVertices)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |