Home
last modified time | relevance | path

Searched refs:aabb (Results 1 – 25 of 73) sorted by relevance

123

/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Collision/
Db2DynamicTree.cpp108 int32 b2DynamicTree::CreateProxy(const b2AABB& aabb, void* userData) in CreateProxy() argument
114 m_nodes[proxyId].aabb.lowerBound = aabb.lowerBound - r; in CreateProxy()
115 m_nodes[proxyId].aabb.upperBound = aabb.upperBound + r; in CreateProxy()
133 bool b2DynamicTree::MoveProxy(int32 proxyId, const b2AABB& aabb, const b2Vec2& displacement) in MoveProxy() argument
139 if (m_nodes[proxyId].aabb.Contains(aabb)) in MoveProxy()
147 b2AABB b = aabb; in MoveProxy()
173 m_nodes[proxyId].aabb = b; in MoveProxy()
191 b2AABB leafAABB = m_nodes[leaf].aabb; in InsertLeaf()
198 float32 area = m_nodes[index].aabb.GetPerimeter(); in InsertLeaf()
201 combinedAABB.Combine(m_nodes[index].aabb, leafAABB); in InsertLeaf()
[all …]
Db2DynamicTree.h36 b2AABB aabb; member
71 int32 CreateProxy(const b2AABB& aabb, void* userData);
92 void Query(T* callback, const b2AABB& aabb) const;
165 return m_nodes[proxyId].aabb; in GetFatAABB()
169 inline void b2DynamicTree::Query(T* callback, const b2AABB& aabb) const in Query() argument
184 if (b2TestOverlap(node->aabb, aabb)) in Query()
242 if (b2TestOverlap(node->aabb, segmentAABB) == false) in RayCast()
249 b2Vec2 c = node->aabb.GetCenter(); in RayCast()
250 b2Vec2 h = node->aabb.GetExtents(); in RayCast()
Db2Collision.h188 void Combine(const b2AABB& aabb) in Combine()
190 lowerBound = b2Min(lowerBound, aabb.lowerBound); in Combine()
191 upperBound = b2Max(upperBound, aabb.upperBound); in Combine()
202 bool Contains(const b2AABB& aabb) const in Contains()
205 result = result && lowerBound.x <= aabb.lowerBound.x; in Contains()
206 result = result && lowerBound.y <= aabb.lowerBound.y; in Contains()
207 result = result && aabb.upperBound.x <= upperBound.x; in Contains()
208 result = result && aabb.upperBound.y <= upperBound.y; in Contains()
Db2BroadPhase.cpp42 int32 b2BroadPhase::CreateProxy(const b2AABB& aabb, void* userData) in CreateProxy() argument
44 int32 proxyId = m_tree.CreateProxy(aabb, userData); in CreateProxy()
57 void b2BroadPhase::MoveProxy(int32 proxyId, const b2AABB& aabb, const b2Vec2& displacement) in MoveProxy() argument
59 bool buffer = m_tree.MoveProxy(proxyId, aabb, displacement); in MoveProxy()
Db2BroadPhase.h51 int32 CreateProxy(const b2AABB& aabb, void* userData);
58 void MoveProxy(int32 proxyId, const b2AABB& aabb, const b2Vec2& displacement);
82 void Query(T* callback, const b2AABB& aabb) const;
274 inline void b2BroadPhase::Query(T* callback, const b2AABB& aabb) const in Query() argument
276 m_tree.Query(callback, aabb); in Query()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/broadphase/
DDynamicTree.java79 public final int createProxy(final AABB aabb, Object userData) { in createProxy() argument
80 assert(aabb.isValid()); in createProxy()
84 final AABB nodeAABB = node.aabb; in createProxy()
85 nodeAABB.lowerBound.x = aabb.lowerBound.x - Settings.aabbExtension; in createProxy()
86 nodeAABB.lowerBound.y = aabb.lowerBound.y - Settings.aabbExtension; in createProxy()
87 nodeAABB.upperBound.x = aabb.upperBound.x + Settings.aabbExtension; in createProxy()
88 nodeAABB.upperBound.y = aabb.upperBound.y + Settings.aabbExtension; in createProxy()
107 public final boolean moveProxy(int proxyId, final AABB aabb, Vec2 displacement) { in moveProxy() argument
108 assert(aabb.isValid()); in moveProxy()
113 final AABB nodeAABB = node.aabb; in moveProxy()
[all …]
DDynamicTreeFlatNodes.java88 public final int createProxy(final AABB aabb, Object userData) { in createProxy() argument
92 nodeAABB.lowerBound.x = aabb.lowerBound.x - Settings.aabbExtension; in createProxy()
93 nodeAABB.lowerBound.y = aabb.lowerBound.y - Settings.aabbExtension; in createProxy()
94 nodeAABB.upperBound.x = aabb.upperBound.x + Settings.aabbExtension; in createProxy()
95 nodeAABB.upperBound.y = aabb.upperBound.y + Settings.aabbExtension; in createProxy()
113 public final boolean moveProxy(int proxyId, final AABB aabb, Vec2 displacement) { in moveProxy() argument
120 if (nodeAABB.lowerBound.x <= aabb.lowerBound.x && nodeAABB.lowerBound.y <= aabb.lowerBound.y in moveProxy()
121 … && aabb.upperBound.x <= nodeAABB.upperBound.x && aabb.upperBound.y <= nodeAABB.upperBound.y) { in moveProxy()
130 lowerBound.x = aabb.lowerBound.x - Settings.aabbExtension; in moveProxy()
131 lowerBound.y = aabb.lowerBound.y - Settings.aabbExtension; in moveProxy()
[all …]
DDefaultBroadPhaseBuffer.java78 public final int createProxy(final AABB aabb, Object userData) { in createProxy() argument
79 int proxyId = m_tree.createProxy(aabb, userData); in createProxy()
93 public final void moveProxy(int proxyId, final AABB aabb, final Vec2 displacement) { in moveProxy() argument
94 boolean buffer = m_tree.moveProxy(proxyId, aabb, displacement); in moveProxy()
193 public final void query(final TreeCallback callback, final AABB aabb) { in query() argument
194 m_tree.query(callback, aabb); in query()
DBroadPhaseStrategy.java19 int createProxy(AABB aabb, Object userData); in createProxy() argument
34 boolean moveProxy(int proxyId, AABB aabb, Vec2 displacement); in moveProxy() argument
47 void query(TreeCallback callback, AABB aabb); in query() argument
DBroadPhase.java23 int createProxy(AABB aabb, Object userData); in createProxy() argument
36 void moveProxy(int proxyId, AABB aabb, Vec2 displacement); in moveProxy() argument
69 void query(TreeCallback callback, AABB aabb); in query() argument
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/
DAABB.java72 public final void set(final AABB aabb) { in set() argument
73 Vec2 v = aabb.lowerBound; in set()
76 Vec2 v1 = aabb.upperBound; in set()
164 public final void combine(final AABB aabb) { in combine() argument
165 lowerBound.x = lowerBound.x < aabb.lowerBound.x ? lowerBound.x : aabb.lowerBound.x; in combine()
166 lowerBound.y = lowerBound.y < aabb.lowerBound.y ? lowerBound.y : aabb.lowerBound.y; in combine()
167 upperBound.x = upperBound.x > aabb.upperBound.x ? upperBound.x : aabb.upperBound.x; in combine()
168 upperBound.y = upperBound.y > aabb.upperBound.y ? upperBound.y : aabb.upperBound.y; in combine()
176 public final boolean contains(final AABB aabb) { in contains() argument
184 return lowerBound.x <= aabb.lowerBound.x && lowerBound.y <= aabb.lowerBound.y in contains()
[all …]
/external/valgrind/none/tests/ppc64/
Dtest_isa_2_06_part1.stdout.exp-LE3 lxsdx: 8899aabb 91929394 => 8899aabb 91929394
7 lxsdx: 8899aabb 91929394 => 8899aabb 91929394
11 lxvd2x: 8899aabb 91929394 a1a2a3a4 b1b2b3b4 => a1a2a3a4 b1b2b3b4 8899aabb 91929394
14 lxvd2x: 89abcdef 00112233 44556677 8899aabb => 44556677 8899aabb 89abcdef 00112233
15 lxvd2x: 8899aabb 91929394 a1a2a3a4 b1b2b3b4 => a1a2a3a4 b1b2b3b4 8899aabb 91929394
19 lxvdsx: 8899aabb 91929394 8899aabb 91929394 => 8899aabb 91929394 8899aabb 91929394
23 lxvdsx: 8899aabb 91929394 8899aabb 91929394 => 8899aabb 91929394 8899aabb 91929394
27 lxvw4x: 8899aabb 91929394 a1a2a3a4 b1b2b3b4 => b1b2b3b4 a1a2a3a4 91929394 8899aabb
30 lxvw4x: 89abcdef 00112233 44556677 8899aabb => 8899aabb 44556677 00112233 89abcdef
31 lxvw4x: 8899aabb 91929394 a1a2a3a4 b1b2b3b4 => b1b2b3b4 a1a2a3a4 91929394 8899aabb
[all …]
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/BroadphaseCollision/
DbtDbvtBroadphase.cpp174 btDbvtAabbMm aabb = btDbvtVolume::FromMM(aabbMin,aabbMax); in createProxy() local
179 proxy->leaf = m_sets[0].insert(aabb,proxy); in createProxy()
185 m_sets[0].collideTV(m_sets[0].m_root,aabb,collider); in createProxy()
186 m_sets[1].collideTV(m_sets[1].m_root,aabb,collider); in createProxy()
288 ATTRIBUTE_ALIGNED16(btDbvtVolume) aabb=btDbvtVolume::FromMM(aabbMin,aabbMax); in setAabb()
290 if(NotEqual(aabb,proxy->leaf->volume)) in setAabb()
297 proxy->leaf=m_sets[0].insert(aabb,proxy); in setAabb()
303 if(Intersect(proxy->leaf->volume,aabb)) in setAabb()
313 m_sets[0].update(proxy->leaf,aabb,velocity,DBVT_BP_MARGIN) in setAabb()
315 m_sets[0].update(proxy->leaf,aabb,velocity) in setAabb()
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/
DFixture.java301 return m_proxies[childIndex].aabb; in getAABB()
383 m_shape.computeAABB(proxy.aabb, xf, i); in createProxies()
384 proxy.proxyId = broadPhase.createProxy(proxy.aabb, proxy); in createProxies()
432 proxy.aabb.lowerBound.x = in synchronize()
434 proxy.aabb.lowerBound.y = in synchronize()
436 proxy.aabb.upperBound.x = in synchronize()
438 proxy.aabb.upperBound.y = in synchronize()
443 broadPhase.moveProxy(proxy.proxyId, proxy.aabb, displacement); in synchronize()
DWorld.java745 AABB aabb = m_contactManager.m_broadPhase.getFatAABB(proxy.proxyId); in drawDebugData() local
746 if (aabb != null) { in drawDebugData()
748 vs[0].set(aabb.lowerBound.x, aabb.lowerBound.y); in drawDebugData()
749 vs[1].set(aabb.upperBound.x, aabb.lowerBound.y); in drawDebugData()
750 vs[2].set(aabb.upperBound.x, aabb.upperBound.y); in drawDebugData()
751 vs[3].set(aabb.lowerBound.x, aabb.upperBound.y); in drawDebugData()
782 public void queryAABB(QueryCallback callback, AABB aabb) { in queryAABB() argument
785 m_contactManager.m_broadPhase.query(wqwrapper, aabb); in queryAABB()
795 public void queryAABB(QueryCallback callback, ParticleQueryCallback particleCallback, AABB aabb) { in queryAABB() argument
798 m_contactManager.m_broadPhase.query(wqwrapper, aabb); in queryAABB()
[all …]
DFixtureProxy.java34 final AABB aabb = new AABB(); field in FixtureProxy
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/shapes/
DCircleShape.java183 public final void computeAABB(final AABB aabb, final Transform transform, int childIndex) { in computeAABB() argument
189 aabb.lowerBound.x = px - m_radius; in computeAABB()
190 aabb.lowerBound.y = py - m_radius; in computeAABB()
191 aabb.upperBound.x = px + m_radius; in computeAABB()
192 aabb.upperBound.y = py + m_radius; in computeAABB()
DChainShape.java136 public void computeAABB(AABB aabb, Transform xf, int childIndex) {
138 final Vec2 lower = aabb.lowerBound;
139 final Vec2 upper = aabb.upperBound;
DEdgeShape.java214 public void computeAABB(AABB aabb, Transform xf, int childIndex) { in computeAABB() argument
215 final Vec2 lowerBound = aabb.lowerBound; in computeAABB()
216 final Vec2 upperBound = aabb.upperBound; in computeAABB()
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Collision/Shapes/
Db2CircleShape.cpp84 void b2CircleShape::ComputeAABB(b2AABB* aabb, const b2Transform& transform, int32 childIndex) const in ComputeAABB() argument
89 aabb->lowerBound.Set(p.x - m_radius, p.y - m_radius); in ComputeAABB()
90 aabb->upperBound.Set(p.x + m_radius, p.y + m_radius); in ComputeAABB()
Db2EdgeShape.cpp117 void b2EdgeShape::ComputeAABB(b2AABB* aabb, const b2Transform& xf, int32 childIndex) const in ComputeAABB() argument
128 aabb->lowerBound = lower - r; in ComputeAABB()
129 aabb->upperBound = upper + r; in ComputeAABB()
Db2ChainShape.cpp169 void b2ChainShape::ComputeAABB(b2AABB* aabb, const b2Transform& xf, int32 childIndex) const in ComputeAABB() argument
183 aabb->lowerBound = b2Min(v1, v2); in ComputeAABB()
184 aabb->upperBound = b2Max(v1, v2); in ComputeAABB()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/particle/
DParticleSystem.java294 AABB aabb = temp; in createParticleGroup() local
298 shape.computeAABB(aabb, identity, childIndex); in createParticleGroup()
302 aabb.combine(childAABB); in createParticleGroup()
305 final float upperBoundY = aabb.upperBound.y; in createParticleGroup()
306 final float upperBoundX = aabb.upperBound.x; in createParticleGroup()
307 for (float y = MathUtils.floor(aabb.lowerBound.y / stride) * stride; y < upperBoundY; y += in createParticleGroup()
309 for (float x = MathUtils.floor(aabb.lowerBound.x / stride) * stride; x < upperBoundX; x += in createParticleGroup()
637 final AABB aabb = temp;
638 aabb.lowerBound.x = Float.MAX_VALUE;
639 aabb.lowerBound.y = Float.MAX_VALUE;
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/
Db2Fixture.cpp132 m_shape->ComputeAABB(&proxy->aabb, xf, i); in CreateProxies()
133 proxy->proxyId = broadPhase->CreateProxy(proxy->aabb, proxy); in CreateProxies()
168 proxy->aabb.Combine(aabb1, aabb2); in Synchronize()
172 broadPhase->MoveProxy(proxy->proxyId, proxy->aabb, displacement); in Synchronize()
Db2World.cpp986 void b2World::QueryAABB(b2QueryCallback* callback, const b2AABB& aabb) const in QueryAABB()
991 m_contactManager.m_broadPhase.Query(&wrapper, aabb); in QueryAABB()
1215 b2AABB aabb = bp->GetFatAABB(proxy->proxyId); in DrawDebugData() local
1217 vs[0].Set(aabb.lowerBound.x, aabb.lowerBound.y); in DrawDebugData()
1218 vs[1].Set(aabb.upperBound.x, aabb.lowerBound.y); in DrawDebugData()
1219 vs[2].Set(aabb.upperBound.x, aabb.upperBound.y); in DrawDebugData()
1220 vs[3].Set(aabb.lowerBound.x, aabb.upperBound.y); in DrawDebugData()

123