Package pybox2d :: Module Box2D :: Class b2EdgeShape
[hide private]
[frames] | no frames]

type b2EdgeShape

source code


The edge shape.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs) source code
 
__repr__(self) source code
 
__getstate__(self, additional_ignore=[])
Returns a dictionary representation of self, with dict(var=value [, ...])
source code
 
__setstate__(self, data)
The factory output cannot be created just yet, so store the necessary information to create it later.
source code
 
_pickle_finalize(self, world=None, body=None)
Finalize one of the outputs that we previously set as a dictionary.
source code
 
GetVertices(self) source code
 
__swig_destroy__(...)
delete_b2EdgeShape(b2EdgeShape self)
 
GetLength(...)
b2EdgeShape_GetLength(b2EdgeShape self) -> float32
source code
 
GetVertex1(...)
b2EdgeShape_GetVertex1(b2EdgeShape self) -> b2Vec2
source code
 
GetVertex2(...)
b2EdgeShape_GetVertex2(b2EdgeShape self) -> b2Vec2
source code
 
GetCoreVertex1(...)
b2EdgeShape_GetCoreVertex1(b2EdgeShape self) -> b2Vec2
source code
 
GetCoreVertex2(...)
b2EdgeShape_GetCoreVertex2(b2EdgeShape self) -> b2Vec2
source code
 
GetNormalVector(...)
b2EdgeShape_GetNormalVector(b2EdgeShape self) -> b2Vec2
source code
 
GetDirectionVector(...)
b2EdgeShape_GetDirectionVector(b2EdgeShape self) -> b2Vec2
source code
 
GetCorner1Vector(...)
b2EdgeShape_GetCorner1Vector(b2EdgeShape self) -> b2Vec2
source code
 
GetCorner2Vector(...)
b2EdgeShape_GetCorner2Vector(b2EdgeShape self) -> b2Vec2
source code
 
Corner1IsConvex(...)
b2EdgeShape_Corner1IsConvex(b2EdgeShape self) -> bool
source code
 
Corner2IsConvex(...)
b2EdgeShape_Corner2IsConvex(b2EdgeShape self) -> bool
source code
 
GetFirstVertex(...)
b2EdgeShape_GetFirstVertex(b2EdgeShape self, b2XForm xf) -> b2Vec2
source code
 
Support(...)
b2EdgeShape_Support(b2EdgeShape self, b2XForm xf, b2Vec2 d) -> b2Vec2
source code
 
GetNextEdge(...)
b2EdgeShape_GetNextEdge(b2EdgeShape self) -> b2EdgeShape
source code
 
GetPrevEdge(...)
b2EdgeShape_GetPrevEdge(b2EdgeShape self) -> b2EdgeShape
source code
 
SetPrevEdge(...)
b2EdgeShape_SetPrevEdge(b2EdgeShape self, b2EdgeShape edge, b2Vec2 core, b2Vec2 cornerDir, ...
source code
 
SetNextEdge(...)
b2EdgeShape_SetNextEdge(b2EdgeShape self, b2EdgeShape edge, b2Vec2 core, b2Vec2 cornerDir, ...
source code
    Inherited from b2Shape
 
ClearUserData(...)
b2Shape_ClearUserData(b2Shape self)
source code
 
ComputeAABB(...)
b2Shape_ComputeAABB(b2Shape self, b2AABB aabb, b2XForm xf)
source code
 
ComputeMass(...)
b2Shape_ComputeMass(b2Shape self, b2MassData massData)
source code
 
ComputeSubmergedArea(...)
b2Shape_ComputeSubmergedArea(b2Shape self, b2Vec2 normal, float32 offset, b2XForm xf, b2Vec2 c) -> float32
source code
 
ComputeSweptAABB(...)
b2Shape_ComputeSweptAABB(b2Shape self, b2AABB aabb, b2XForm xf1, b2XForm xf2)
source code
 
GetBody(...)
b2Shape_GetBody(b2Shape self) -> b2Body
source code
 
GetDensity(...)
b2Shape_GetDensity(b2Shape self) -> float32
source code
 
GetFilterData(...)
b2Shape_GetFilterData(b2Shape self) -> b2FilterData
source code
 
GetFriction(...)
b2Shape_GetFriction(b2Shape self) -> float32
source code
 
GetNext(...)
b2Shape_GetNext(b2Shape self) -> b2Shape
source code
 
GetRestitution(...)
b2Shape_GetRestitution(b2Shape self) -> float32
source code
 
GetSweepRadius(...)
b2Shape_GetSweepRadius(b2Shape self) -> float32
source code
 
GetType(...)
b2Shape_GetType(b2Shape self) -> b2ShapeType
source code
 
GetUserData(...)
b2Shape_GetUserData(b2Shape self) -> PyObject
source code
 
IsSensor(...)
b2Shape_IsSensor(b2Shape self) -> bool
source code
 
SetDensity(...)
b2Shape_SetDensity(b2Shape self, float32 density)
source code
 
SetFilterData(...)
b2Shape_SetFilterData(b2Shape self, b2FilterData filter)
source code
 
SetFriction(...)
b2Shape_SetFriction(b2Shape self, float32 friction)
source code
 
SetRestitution(...)
b2Shape_SetRestitution(b2Shape self, float32 restitution)
source code
 
SetUserData(...)
b2Shape_SetUserData(b2Shape self, PyObject data)
source code
 
TestPoint(...)
b2Shape_TestPoint(b2Shape self, b2XForm xf, b2Vec2 p) -> bool
source code
 
TestSegment(...)
TestSegment(b2XForm xf, float32 _lambda, b2Vec2 normal, b2Segment segment, float32 maxLambda) -> b2SegmentCollide b2Shape_TestSegment(b2Shape self, b2XForm xf, b2Segment segment, float32 maxLambda) -> PyObject
source code
 
__eq__(a, b) source code
 
__hash__(...)
b2Shape___hash__(b2Shape self) -> int32
source code
 
__ne__(self, other) source code
 
asCircle(...)
b2Shape_asCircle(b2Shape self) -> b2CircleShape
source code
 
asEdge(...)
b2Shape_asEdge(b2Shape self) -> b2EdgeShape
source code
 
asPolygon(...)
b2Shape_asPolygon(b2Shape self) -> b2PolygonShape
source code
 
getAsType(self)
Return a typecasted version of the shape
source code
 
typeName(self) source code
Properties [hide private]
  thisown
The membership flag
  length
GetLength(self) -> float32
  vertex1
GetVertex1(self) -> b2Vec2
  vertex2
GetVertex2(self) -> b2Vec2
  coreVertex1
GetCoreVertex1(self) -> b2Vec2
  coreVertex2
GetCoreVertex2(self) -> b2Vec2
  next
GetNextEdge(self) -> b2EdgeShape
  prev
GetPrevEdge(self) -> b2EdgeShape
    Inherited from b2Shape
  density
GetDensity(self) -> float32
  filter
GetFilterData(self) -> b2FilterData
  friction
GetFriction(self) -> float32
  isSensor
IsSensor(self) -> bool
  restitution
GetRestitution(self) -> float32
  userData
GetUserData(self) -> PyObject
Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 
Overrides: b2Shape.__init__

__repr__(self)
(Representation operator)

source code 
Overrides: b2Shape.__repr__

__getstate__(self, additional_ignore=[])

source code 

Returns a dictionary representation of self, with 
 dict(var=value [, ...])

additional_ignore can be specified to ignore certain
properties. 

Overrides: no_pickle

__setstate__(self, data)

source code 

The factory output cannot be created just yet, so store the necessary information to create it later.

Overrides: _generic_setstate

GetLength(...)

source code 

b2EdgeShape_GetLength(b2EdgeShape self) -> float32

Linear distance from vertex1 to vertex2:.

GetVertex1(...)

source code 

b2EdgeShape_GetVertex1(b2EdgeShape self) -> b2Vec2

Local position of vertex in parent body.

GetVertex2(...)

source code 

b2EdgeShape_GetVertex2(b2EdgeShape self) -> b2Vec2

Local position of vertex in parent body.

GetCoreVertex1(...)

source code 

b2EdgeShape_GetCoreVertex1(b2EdgeShape self) -> b2Vec2

"Core" vertex with TOI slop for b2Distance functions:

GetCoreVertex2(...)

source code 

b2EdgeShape_GetCoreVertex2(b2EdgeShape self) -> b2Vec2

"Core" vertex with TOI slop for b2Distance functions:

GetNormalVector(...)

source code 

b2EdgeShape_GetNormalVector(b2EdgeShape self) -> b2Vec2

Perpendicular unit vector point, pointing from the solid side to the empty side:.

GetDirectionVector(...)

source code 

b2EdgeShape_GetDirectionVector(b2EdgeShape self) -> b2Vec2

Parallel unit vector, pointing from vertex1 to vertex2:.

GetNextEdge(...)

source code 

b2EdgeShape_GetNextEdge(b2EdgeShape self) -> b2EdgeShape

Get the next edge in the chain.

GetPrevEdge(...)

source code 

b2EdgeShape_GetPrevEdge(b2EdgeShape self) -> b2EdgeShape

Get the previous edge in the chain.

SetPrevEdge(...)

source code 

b2EdgeShape_SetPrevEdge(b2EdgeShape self, b2EdgeShape edge, b2Vec2 core, b2Vec2 cornerDir, 
    bool convex)

SetNextEdge(...)

source code 

b2EdgeShape_SetNextEdge(b2EdgeShape self, b2EdgeShape edge, b2Vec2 core, b2Vec2 cornerDir, 
    bool convex)


Property Details [hide private]

thisown

The membership flag

length

GetLength(self) -> float32

Linear distance from vertex1 to vertex2:.

vertex1

GetVertex1(self) -> b2Vec2

Local position of vertex in parent body.

vertex2

GetVertex2(self) -> b2Vec2

Local position of vertex in parent body.

coreVertex1

GetCoreVertex1(self) -> b2Vec2

"Core" vertex with TOI slop for b2Distance functions:

coreVertex2

GetCoreVertex2(self) -> b2Vec2

"Core" vertex with TOI slop for b2Distance functions:

next

GetNextEdge(self) -> b2EdgeShape

Get the next edge in the chain.

prev

GetPrevEdge(self) -> b2EdgeShape

Get the previous edge in the chain.