Packageorg.MARS.view.shape
Classpublic class CubicBezierCurve
InheritanceCubicBezierCurve Inheritance Shape

Circular cubic bezier curve

NOTE: the class is not yet implemented



Public Properties
 PropertyDefined by
 Inheritedalpha : Number
Shape's transparency (0 to 1)
Shape
 Inheritedanchor : IBody
Shape
 InheritedboundingBox : AABR
Shape
 InheritedcollisionTypeID : String
Shape
 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
 Inheritedposition : Vector
Shape
 Inheritedq : Number
Shape
 Inheritedrotation : RotationMatrix
Shape
 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_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
  
CubicBezierCurve(x:Number, y: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 cubic bezier curve with the following parameters
CubicBezierCurve
 Inherited
rotate(q:Number):void
Rotate the shape
Shape
 Inherited
translate(displacement:Vector):void
Translate shape using a given displacement vector.
Shape
Constructor detail
CubicBezierCurve()constructor
public function CubicBezierCurve(x:Number, y: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 cubic bezier curve with the following parameters

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