Home
last modified time | relevance | path

Searched refs:m_radius (Results 1 – 25 of 43) sorted by relevance

12

/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Collision/Shapes/
Db2CircleShape.cpp40 return b2Dot(d, d) <= m_radius * m_radius; in TestPoint()
54 float32 b = b2Dot(s, s) - m_radius * m_radius; in RayCast()
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()
95 massData->mass = density * b2_pi * m_radius * m_radius; in ComputeMass()
99 massData->I = massData->mass * (0.5f * m_radius * m_radius + b2Dot(m_p, m_p)); in ComputeMass()
Db2EdgeShape.cpp127 b2Vec2 r(m_radius, m_radius); in ComputeAABB()
Db2ChainShape.cpp114 edge->m_radius = m_radius; in GetChildEdge()
Db2EdgeShape.h65 m_radius = b2_polygonRadius; in b2EdgeShape()
Db2Shape.h93 float32 m_radius; variable
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/shapes/
DCircleShape.java46 m_radius = 0; in CircleShape()
53 shape.m_radius = m_radius; in clone()
113 return centerx * centerx + centery * centery <= m_radius * m_radius; in testPoint()
126 return d1 - m_radius; in computeDistanceToOut()
150 final float b = sx * sx + sy * sy - m_radius * m_radius; in raycast()
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()
197 massData.mass = density * Settings.PI * m_radius * m_radius; in computeMass()
[all …]
DShape.java40 public float m_radius; field in Shape
62 return m_radius; in getRadius()
72 this.m_radius = radius; in setRadius()
DEdgeShape.java65 m_radius = Settings.polygonRadius; in EdgeShape()
229 lowerBound.x -= m_radius; in computeAABB()
230 lowerBound.y -= m_radius; in computeAABB()
231 upperBound.x += m_radius; in computeAABB()
232 upperBound.y += m_radius; in computeAABB()
245 edge.m_radius = this.m_radius; in clone()
DChainShape.java56 m_radius = Settings.polygonRadius; in ChainShape()
70 edge.m_radius = m_radius; in getChildEdge()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/
DbtConeShape.cpp21 m_radius (radius), in btConeShape()
27 m_sinAngle = (m_radius / btSqrt(m_radius * m_radius + m_height * m_height)); in btConeShape()
66 m_implicitShapeDimensions[m_coneIndices[0]] = m_radius; in setConeUpIndex()
68 m_implicitShapeDimensions[m_coneIndices[2]] = m_radius; in setConeUpIndex()
88 btScalar d = m_radius / s; in coneLocalSupport()
144 m_radius *= (scaling[r1] / m_localScaling[r1] + scaling[r2] / m_localScaling[r2]) / 2; in setLocalScaling()
145 m_sinAngle = (m_radius / btSqrt(m_radius * m_radius + m_height * m_height)); in setLocalScaling()
DbtConvexPolyhedron.cpp199 m_radius = FLT_MAX; in initialize()
204 if(dist<m_radius) in initialize()
205 m_radius = dist; in initialize()
231 const btScalar r = m_radius / sqrtf(3.0f); in initialize()
254 const btScalar Step = (m_radius - r)/1024.0f; in initialize()
DbtConeShape.h28 btScalar m_radius; in ATTRIBUTE_ALIGNED16() local
43 btScalar getRadius() const { return m_radius;} in ATTRIBUTE_ALIGNED16()
DbtConvexPolyhedron.h52 btScalar m_radius; in ATTRIBUTE_ALIGNED16() local
DbtMultiSphereShape.h80 float m_radius; member
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/box2d/
DOneSidedPlatform.java51 float m_radius; field in OneSidedPlatform
84 m_radius = 0.5f; in createWorld()
86 shape.setRadius(m_radius); in createWorld()
99 if (position.y < m_top + m_radius - 3.0f * 0.005f) in createWorld()
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Collision/
Db2Distance.cpp37 m_radius = circle->m_radius; in Set()
46 m_radius = polygon->m_radius; in Set()
67 m_radius = chain->m_radius; in Set()
76 m_radius = edge->m_radius; in Set()
580 float32 rA = proxyA->m_radius; in b2Distance()
581 float32 rB = proxyB->m_radius; in b2Distance()
Db2CollideCircle.cpp35 float32 rA = circleA->m_radius, rB = circleB->m_radius; in b2CollideCircles()
65 float32 radius = polygonA->m_radius + circleB->m_radius; in b2CollidePolygonAndCircle()
Db2CollideEdge.cpp43 float32 radius = edgeA->m_radius + circleB->m_radius; in b2CollideEdgeAndCircle()
217 float32 m_radius; member
435 m_radius = 2.0f * b2_polygonRadius; in Collide()
447 if (edgeAxis.separation > m_radius) in Collide()
453 if (polygonAxis.type != b2EPAxis::e_unknown && polygonAxis.separation > m_radius) in Collide()
595 if (separation <= m_radius) in Collide()
656 if (s > m_radius) in ComputePolygonSeparation()
Db2Distance.h31 b2DistanceProxy() : m_vertices(NULL), m_count(0), m_radius(0.0f) {} in b2DistanceProxy()
52 float32 m_radius; member
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/
DDistance.java479 public float m_radius; field in Distance.DistanceProxy
489 m_radius = 0f; in DistanceProxy()
502 m_radius = circle.m_radius; in set()
508 m_radius = poly.m_radius; in set()
527 m_radius = chain.m_radius; in set()
534 m_radius = edge.m_radius; in set()
750 float rA = proxyA.m_radius; in distance()
751 float rB = proxyB.m_radius; in distance()
DCollision.java223 final float radius = circle1.m_radius + circle2.m_radius; in collideCircles()
274 final float radius = polygon.m_radius + circle.m_radius; in collidePolygonAndCircle()
581 float totalRadius = polyA.m_radius + polyB.m_radius;
741 float radius = edgeA.m_radius + circleB.m_radius;
982 float m_radius;
1212 m_radius = 2.0f * Settings.polygonRadius;
1223 if (edgeAxis.separation > m_radius) {
1228 if (polygonAxis.type != EPAxis.Type.UNKNOWN && polygonAxis.separation > m_radius) {
1349 if (separation <= m_radius) {
1417 if (s > m_radius) {
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/
Dcom.badlogic.gdx.physics.box2d.Shape.cpp12 return shape->m_radius; in Java_com_badlogic_gdx_physics_box2d_Shape_jniGetRadius()
23 shape->m_radius = radius; in Java_com_badlogic_gdx_physics_box2d_Shape_jniSetRadius()
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/Contacts/
Db2Contact.h239 …tialize(&m_manifold, bodyA->GetTransform(), shapeA->m_radius, bodyB->GetTransform(), shapeB->m_rad… in GetWorldManifold()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/NarrowPhaseCollision/
DbtPolyhedralContactClipping.cpp167 const btScalar MinRadius = Radius0>convex0.m_radius ? Radius0 : convex0.m_radius; in TestInternalObjects()
168 const btScalar MaxRadius = Radius1>convex1.m_radius ? Radius1 : convex1.m_radius; in TestInternalObjects()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/contacts/
DContact.java147 worldManifold.initialize(m_manifold, bodyA.getTransform(), shapeA.m_radius, in getWorldManifold()
148 bodyB.getTransform(), shapeB.m_radius); in getWorldManifold()

12