|
||||||||||
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
org.vormplus.shapeLib.polygons.Hendecagon
public class Hendecagon
Creates a Hendecagon object, a regular polygon with 11 sides. This class extends the BasicShape class. References ----------------- http://en.wikipedia.org/wiki/Hendecagon http://www.mathopenref.com/undecagon.html
Field Summary | |
---|---|
float |
radius
|
processing.core.PVector[] |
vertices
|
Constructor Summary | |
---|---|
Hendecagon(processing.core.PApplet _p)
Creates a Hendecagon object with a radius of 50. |
Method Summary | |
---|---|
float |
area()
Returns the area of the Hendecagon. |
float |
externalAngle()
Returns the external angle of the Hendecagon. |
float |
internalAngle()
Returns the internal angle of the Hendecagon. |
float |
perimeter()
Returns the perimeter of the Hendecagon. |
void |
render()
Renders the Hendecagon to the screen. |
Hendecagon |
setRadius(float r)
Sets the radius for the Hendecagon. |
Methods inherited from class org.vormplus.shapeLib.polygons.RegularPolygon |
---|
area, externalAngle, internalAngle, perimeter, render |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float radius
public processing.core.PVector[] vertices
Constructor Detail |
---|
public Hendecagon(processing.core.PApplet _p)
_p
- Reference to the PApplet object. Normally use 'this'Method Detail |
---|
public Hendecagon setRadius(float r)
r
- Radius for the Hendecagon.public void render()
public float area()
public float perimeter()
public float internalAngle()
public float externalAngle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |