A line in space between two given vertices.
public var p1:b2Vec2
The starting point
public var p2:b2Vec2
The ending point
public function Extend(aabb:b2AABB):void
Extends or clips the segment so that it's ends lie on the boundary of the AABB
Parameters
public function ExtendBackward(aabb:b2AABB):void
Parameters
See also
Extend
public function ExtendForward(aabb:b2AABB):void
Parameters
See also
Extend
public function TestSegment(lambda:Array, normal:b2Vec2, segment:b2Segment, maxLambda:Number):Boolean
Ray cast against this segment with another segment
Parameters
| lambda:Array — the shape world transform.
|
|
| normal:b2Vec2 — returns the hit fraction. You can use this to compute the contact point
p = (1 - lambda) segment.p1 + lambda segment.p2.
|
|
| segment:b2Segment — returns the normal at the contact point. If there is no intersection, the normal
is not set.
|
|
| maxLambda:Number — defines the begin and end point of the ray cast.
|
Returns
| Boolean — true if there was an intersection.
|
See also
Box2DFlashAS3 r42.