| Package | edu.stanford.covertlab.graphics.shape |
| Class | public class RegularPolygonShape |
| Inheritance | RegularPolygonShape PolygonShapeBase ShapeBase com.degrafa.GeometryGroup |
| Method | Defined by | ||
|---|---|---|---|
|
RegularPolygonShape(size:Number, strokeColor:uint, fillColor:uint, nsides:uint = 4, theta:Number = 0)
| RegularPolygonShape | ||
![]() |
getPortBounds():Rectangle
| ShapeBase | |
![]() |
port(theta:Number, sense:Boolean):GraphicPoint
| PolygonShapeBase | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
computeConvexPolygonPort(points:Array, theta:Number, sense:Boolean):GraphicPoint
| ShapeBase | |
![]() |
normalizeAngle(theta:Number):Number
| ShapeBase | |
![]() |
rectangleToPoints(rectangle:Rectangle):Array
| ShapeBase | |
|
regularPolygonPoints(size:Number, nsides:uint, rotation:Number = 0):Array
| RegularPolygonShape | ||
| RegularPolygonShape | () | constructor |
public function RegularPolygonShape(size:Number, strokeColor:uint, fillColor:uint, nsides:uint = 4, theta:Number = 0)Parameters
size:Number |
|
strokeColor:uint |
|
fillColor:uint |
|
nsides:uint (default = 4) |
|
theta:Number (default = 0) |
| regularPolygonPoints | () | method |
protected function regularPolygonPoints(size:Number, nsides:uint, rotation:Number = 0):ArrayParameters
size:Number |
|
nsides:uint |
|
rotation:Number (default = 0) |
Array |