Packageorg.MARS.view.shape
Classpublic class SymmetricPolygon
InheritanceSymmetricPolygon Inheritance Polygon Inheritance Shape

Symmetric Polygon is a special case of Polygon

See also

Polygon


Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Shape's transparency (0 to 1)
Shape
 Inheritedanchor : IBody
Shape
 InheritedboundingBox : AABR
Calculates the bounding box based on the vertices of the polygon
Polygon
 InheritedcollisionTypeID : String
Polygon
 Inheritedcolor : uint
Shape's color
Shape
 Inheriteddisplacement : Vector
Shape
 Inheritededges : Array
Polygon
 InheritedhashSize : Number
Size of hash (circle in the center of the object)
Shape
 InheritedinverseMass : Number
Shape
 InheritedisAnchored : Boolean
Shape
 InheritedisColliding : Boolean
Shape
 InheritedisOnTable : Boolean
Shape
 InheritedlineColor : uint
Line color
Shape
 InheritedlineThickness : Number
Line thickness
Shape
 Inheritedmass : Number
Shape
 Inheritedposition : Vector
Shape
 Inheritedq : Number
Shape
 Inheritedrotation : RotationMatrix
Shape
 Inheritedvertices : Array
Polygon
 Inheritedx : Number
Shape
 Inheritedy : Number
Shape
Protected Properties
 PropertyDefined by
 Inherited_anchor : IBody
The object to which the shape is attached
Shape
 Inherited_center : Vector
Displacement vector
Shape
 Inherited_edges : Array
Polygon
 Inherited_isAnchored : Boolean
Flag the shows if the shape is attached to an object
Shape
 Inherited_isColliding : Boolean = false
Shape
 Inherited_isOnTable : Boolean = true
Shape
 Inherited_q : Number = 0
Shape's rotation in radians
Shape
 Inherited_vertices : Array
Polygon
Public Methods
 MethodDefined by
  
SymmetricPolygon(x:Number, y:Number, numVertices:Number, size:Number, q:Number = 0, anchor:IBody = null, color:uint = 0xFFFFFF, alpha:Number = 0.7, lineColor:uint = 0x000000, lineThickness:Number = 1, hashSize:Number = 5)
Create a Symmetric Polygon with the following parameters
SymmetricPolygon
 Inherited
rotate(q:Number):void
Rotate every vertice
Polygon
 Inherited
translate(displacement:Vector):void
Translate every vertice
Polygon
Constructor detail
SymmetricPolygon()constructor
public function SymmetricPolygon(x:Number, y:Number, numVertices:Number, size:Number, q:Number = 0, anchor:IBody = null, color:uint = 0xFFFFFF, alpha:Number = 0.7, lineColor:uint = 0x000000, lineThickness:Number = 1, hashSize:Number = 5)

Create a Symmetric Polygon with the following parameters

Parameters
x:Number
 
y:Number
 
numVertices:Number
 
size:Number
 
q:Number (default = 0)
 
anchor:IBody (default = null)
 
color:uint (default = 0xFFFFFF)
 
alpha:Number (default = 0.7)
 
lineColor:uint (default = 0x000000)
 
lineThickness:Number (default = 1)
 
hashSize:Number (default = 5)