home *** CD-ROM | disk | FTP | other *** search
- package Box2D.Collision
- {
- public class b2Bound
- {
-
-
- public var value:uint;
-
- public var proxyId:uint;
-
- public var stabbingCount:uint;
-
- public function b2Bound()
- {
- super();
- }
-
- public function Swap(b:b2Bound) : void
- {
- var tempValue:uint = value;
- var tempProxyId:uint = proxyId;
- var tempStabbingCount:uint = stabbingCount;
- value = b.value;
- proxyId = b.proxyId;
- stabbingCount = b.stabbingCount;
- b.value = tempValue;
- b.proxyId = tempProxyId;
- b.stabbingCount = tempStabbingCount;
- }
-
- public function IsLower() : Boolean
- {
- return (value & 1) == 0;
- }
-
- public function IsUpper() : Boolean
- {
- return (value & 1) == 1;
- }
- }
- }
-