Packageorg.MARS.view.shape
Classpublic class Circle
InheritanceCircle Inheritance Shape

Circular shape



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Shape's transparency (0 to 1)
Shape
 Inheritedanchor : IBody
Shape
  boundingBox : AABR
[read-only]
Circle
  collisionTypeID : String
[read-only]
Circle
 Inheritedcolor : uint
Shape's color
Shape
 Inheriteddisplacement : Vector
Shape
 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
  position : Vector
[read-only]
Circle
 Inheritedq : Number
Shape
  radius : Number
Circle
 Inheritedrotation : RotationMatrix
Shape
  x : Number
[read-only]
Circle
  y : Number
[read-only]
Circle
Protected Properties
 PropertyDefined by
 Inherited_anchor : IBody
The object to which the shape is attached
Shape
 Inherited_center : Vector
Displacement vector
Shape
 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
Public Methods
 MethodDefined by
  
Circle(x:Number, y:Number, radius:Number, anchor:IBody = null, color:uint = 0xFFFFFF, alpha:Number = 0.7, lineColor:uint = 0x000000, lineThickness:Number = 1, hashSize:Number = 5)
Create a circle with the following parameters
Circle
 Inherited
rotate(q:Number):void
Rotate the shape
Shape
 Inherited
translate(displacement:Vector):void
Translate shape using a given displacement vector.
Shape
Property detail
boundingBoxproperty
boundingBox:AABR  [read-only]Implementation
    public function get boundingBox():AABR
collisionTypeIDproperty 
collisionTypeID:String  [read-only]Implementation
    public function get collisionTypeID():String
positionproperty 
position:Vector  [read-only]Implementation
    public function get position():Vector
radiusproperty 
radius:Number  [read-write]Implementation
    public function get radius():Number
    public function set radius(value:Number):void
xproperty 
x:Number  [read-only]Implementation
    public function get x():Number
yproperty 
y:Number  [read-only]Implementation
    public function get y():Number
Constructor detail
Circle()constructor
public function Circle(x:Number, y:Number, radius:Number, anchor:IBody = null, color:uint = 0xFFFFFF, alpha:Number = 0.7, lineColor:uint = 0x000000, lineThickness:Number = 1, hashSize:Number = 5)

Create a circle with the following parameters

Parameters
x:Number
 
y:Number
 
radius:Number
 
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)