PackageBox2DAS.Collision.Shapes
Classpublic class b2EdgeShape
Inheritanceb2EdgeShape Inheritance b2Shape Inheritance b2Base Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedbytes : ByteArray
[static]
b2Base
 Inheritedinitialized : Boolean = false
[static]
b2Base
 Inheritedlib : Object
[static]
b2Base
 Inheritedloader : CLibInit
[static]
b2Base
 Inheritedm_area : Number
b2Shape
 Inheritedmem : MemUser
[static]
b2Base
  m_hasVertex0 : Boolean
b2EdgeShape
  m_hasVertex3 : Boolean
b2EdgeShape
 Inheritedm_radius : Number
b2Shape
 Inheritedm_type : int
b2Shape
  m_vertex0 : b2Vec2
b2EdgeShape
  m_vertex1 : b2Vec2
b2EdgeShape
  m_vertex2 : b2Vec2
b2EdgeShape
  m_vertex3 : b2Vec2
b2EdgeShape
 Inherited_ptr : Number
b2Base
 Inheritedvalid : Boolean
[read-only] Does the object point to a C++ equivalent (i.e.
b2Base
Public Methods
 MethodDefined By
  
b2EdgeShape(p:int = 0)
b2EdgeShape
 Inherited
ComputeAABB(aabb:AABB, xf:XF):void
b2Shape
 Inherited
ComputeMass(massData:b2MassData, density:Number):void
b2Shape
 Inherited
ComputeSubmergedArea(normal:V2, offset:Number, xf:XF, c:V2):Number
b2Shape
 Inherited
b2Shape
 Inherited
deref(adr:int):*
[static] dereference a C++ pointer or AS3_Val that is pointing to an AS3 object.
b2Base
 Inherited
destroy():void
Destroy base function just sets _ptr = 0.
b2Base
  
Draw(g:Graphics, xf:XF, scale:Number = 1, options:Object = null):void
[override]
b2EdgeShape
 Inherited
getArr():Array
[static]
b2Base
 Inherited
GetType():int
b2Shape
 Inherited
initialize(defs:Boolean = true):void
[static] Initialize the C++ module.
b2Base
 Inherited
RayCast(output:*, input:*, transform:XF):Boolean
b2Shape
 Inherited
readVertices(adr:int, num:int):Vector.<V2>
Read C++ memory and convert it into a vertex array.
b2Base
 Inherited
TestPoint(xf:XF, p:V2):Boolean
b2Shape
 Inherited
writeVertices(adr:int, v:Vector.<V2>):void
Write a vertex array of the format [new V2(x,y), new V2(x,y), ...] to C++ memory.
b2Base
Public Constants
 ConstantDefined By
 Inheritede_circle : int = 0
[static]
b2Shape
 Inheritede_polygon : int = 1
[static]
b2Shape
 Inheritede_typeCount : int = 2
[static]
b2Shape
 Inheritede_unknown : int = -1
[static]
b2Shape
Property Detail
m_hasVertex0property
m_hasVertex0:Boolean


Implementation
    public function get m_hasVertex0():Boolean
    public function set m_hasVertex0(value:Boolean):void
m_hasVertex3property 
m_hasVertex3:Boolean


Implementation
    public function get m_hasVertex3():Boolean
    public function set m_hasVertex3(value:Boolean):void
m_vertex0property 
public var m_vertex0:b2Vec2

m_vertex1property 
public var m_vertex1:b2Vec2

m_vertex2property 
public var m_vertex2:b2Vec2

m_vertex3property 
public var m_vertex3:b2Vec2

Constructor Detail
b2EdgeShape()Constructor
public function b2EdgeShape(p:int = 0)



Parameters
p:int (default = 0)
Method Detail
Draw()method
override public function Draw(g:Graphics, xf:XF, scale:Number = 1, options:Object = null):void

Parameters

g:Graphics
 
xf:XF
 
scale:Number (default = 1)
 
options:Object (default = null)