/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/collision/shapes/ |
MassData.java | 53 /** This holds the mass data computed for a shape. */ 55 /** The mass of the shape, usually in kilograms. */ 56 public float mass; field in class:MassData 63 * Blank mass data 66 mass = I = 0f; 71 * Copies from the given mass data 74 * mass data to copy from 77 mass = md.mass; 83 mass = md.mass [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/ |
MassData.java | 21 /** This holds the mass data computed for a shape. 24 /** The mass of the shape, usually in kilograms. **/ 25 public float mass; field in class:MassData
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/ |
MassData.java | 21 /** This holds the mass data computed for a shape. 24 /** The mass of the shape, usually in kilograms. **/ 25 public float mass; field in class:MassData
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/particle/ |
ParticleBodyContact.java | 15 /** The effective mass used in calculating force. */ 16 float mass; field in class:ParticleBodyContact
|
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/ |
btBox2dShape.cpp | 28 void btBox2dShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 37 inertia.setValue(mass/(btScalar(12.0)) * (ly*ly + lz*lz), 38 mass/(btScalar(12.0)) * (lx*lx + lz*lz), 39 mass/(btScalar(12.0)) * (lx*lx + ly*ly));
|
btBoxShape.cpp | 37 void btBoxShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 46 inertia.setValue(mass/(btScalar(12.0)) * (ly*ly + lz*lz), 47 mass/(btScalar(12.0)) * (lx*lx + lz*lz), 48 mass/(btScalar(12.0)) * (lx*lx + ly*ly));
|
btMinkowskiSumShape.cpp | 55 void btMinkowskiSumShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 57 (void)mass;
|
btEmptyShape.h | 54 virtual void calculateLocalInertia(btScalar mass,btVector3& inertia) const;
|
btConvex2dShape.cpp | 47 void btConvex2dShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 49 ///this linear upscaling is not realistic, but we don't deal with large mass ratios... 50 m_childConvexShape->calculateLocalInertia(mass,inertia);
|
btSphereShape.cpp | 65 void btSphereShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 67 btScalar elem = btScalar(0.4) * mass * getMargin()*getMargin();
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/bullet/ |
BulletConstructor.java | 37 public BulletConstructor (final Model model, final float mass, final btCollisionShape shape) { 38 create(model, mass, shape); 47 public BulletConstructor (final Model model, final float mass, final float width, final float height, final float depth) { 48 create(model, mass, width, height, depth); 57 public BulletConstructor (final Model model, final float mass) { 60 create(model, mass, boundingBox.getWidth(), boundingBox.getHeight(), boundingBox.getDepth()); 68 private void create (final Model model, final float mass, final float width, final float height, final float depth) { 70 create(model, mass, new btBoxShape(tmpV.set(width * 0.5f, height * 0.5f, depth * 0.5f))); 73 private void create (final Model model, final float mass, final btCollisionShape shape) { 77 if (shape != null && mass >= 0) [all...] |
ImportTest.java | 49 public btRigidBody createRigidBody (boolean isDynamic, float mass, Matrix4 startTransform, btCollisionShape shape,
52 if (mass > 0f) shape.calculateLocalInertia(mass, localInertia);
54 btRigidBody result = new btRigidBody(mass, null, shape, localInertia);
|
/prebuilts/go/darwin-x86/test/bench/shootout/ |
nbody.c | 49 double mass; member in struct:planet 65 b->vx -= dx * b2->mass * mag; 66 b->vy -= dy * b2->mass * mag; 67 b->vz -= dz * b2->mass * mag; 68 b2->vx += dx * b->mass * mag; 69 b2->vy += dy * b->mass * mag; 70 b2->vz += dz * b->mass * mag; 89 e += 0.5 * b->mass * (b->vx * b->vx + b->vy * b->vy + b->vz * b->vz); 96 e -= (b->mass * b2->mass) / distance [all...] |
nbody.go | 48 x, y, z, vx, vy, vz, mass float64 72 px += body.vx * body.mass 73 py += body.vy * body.mass 74 pz += body.vz * body.mass 83 e += 0.5 * body.mass * 91 e -= (body.mass * body2.mass) / distance 109 body.vx -= dx * body2.mass * mag 110 body.vy -= dy * body2.mass * mag 111 body.vz -= dz * body2.mass * ma [all...] |
/prebuilts/go/linux-x86/test/bench/shootout/ |
nbody.c | 49 double mass; member in struct:planet 65 b->vx -= dx * b2->mass * mag; 66 b->vy -= dy * b2->mass * mag; 67 b->vz -= dz * b2->mass * mag; 68 b2->vx += dx * b->mass * mag; 69 b2->vy += dy * b->mass * mag; 70 b2->vz += dz * b->mass * mag; 89 e += 0.5 * b->mass * (b->vx * b->vx + b->vy * b->vy + b->vz * b->vz); 96 e -= (b->mass * b2->mass) / distance [all...] |
nbody.go | 48 x, y, z, vx, vy, vz, mass float64 72 px += body.vx * body.mass 73 py += body.vy * body.mass 74 pz += body.vz * body.mass 83 e += 0.5 * body.mass * 91 e -= (body.mass * body2.mass) / distance 109 body.vx -= dx * body2.mass * mag 110 body.vy -= dy * body2.mass * mag 111 body.vz -= dz * body2.mass * ma [all...] |
/external/libgdx/extensions/gdx-bullet/jni/swig/dynamics/ |
btRigidBody.i | 14 %ignore btRigidBody::btRigidBodyConstructionInfo::btRigidBodyConstructionInfo(btScalar mass, btMotionState* motionState, btCollisionShape* collisionShape); 15 %ignore btRigidBody::btRigidBodyConstructionInfo::btRigidBodyConstructionInfo(btScalar mass, btMotionState* motionState, btCollisionShape* collisionShape, const btVector3& localInertia); 70 public btRigidBodyConstructionInfo(float mass, btMotionState motionState, btCollisionShape collisionShape, Vector3 localInertia) { 71 this(false, mass, motionState, collisionShape, localInertia); 76 public btRigidBodyConstructionInfo(float mass, btMotionState motionState, btCollisionShape collisionShape) { 77 this(false, mass, motionState, collisionShape); 95 btRigidBodyConstructionInfo(bool dummy, btScalar mass, btMotionState* motionState, btCollisionShape* collisionShape, const btVector3& localInertia=btVector3(0,0,0)) { 96 return new btRigidBody::btRigidBodyConstructionInfo(mass, motionState, collisionShape, localInertia); 103 %ignore btRigidBody::btRigidBody(btScalar mass, btMotionState* motionState, btCollisionShape* collisionShape, const btVector3& localInertia=btVector3(0,0,0)); 117 btRigidBody(bool dummy, btScalar mass, btMotionState* motionState, btCollisionShape* collisionShape, const btVector3& localInertia=btVec (…) [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/Gimpact/ |
btGImpactMassUtil.h | 51 SIMD_FORCE_INLINE btVector3 gim_get_point_inertia(const btVector3 & point, btScalar mass) 56 return btVector3(mass*(y2+z2),mass*(x2+z2),mass*(x2+y2));
|
btGImpactShape.cpp | 29 void btGImpactCompoundShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 36 btScalar shapemass = mass/btScalar(i); 63 const btScalar scaledmass = mass * btScalar(0.08333333); 73 void btGImpactMeshShapePart::calculateLocalInertia(btScalar mass,btVector3& inertia) const 82 btScalar pointmass = mass/btScalar(i); 102 const btScalar scaledmass = mass * btScalar(0.08333333); 111 void btGImpactMeshShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const 118 btScalar partmass = mass/btScalar(i); 137 const btScalar scaledmass = mass * btScalar(0.08333333);
|
/development/perftests/panorama/feature_mos/src/mosaic/ |
Geometry.h | 67 double &mass, double ¢X, double ¢Y) 78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a 82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 117 // the mass is the base * height 120 mass = len1 * sqrt(dx * dx + dy * dy); 124 mass = fabs( (y1 - y0) * (x2 - x0) );
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
Geometry.h | 67 double &mass, double ¢X, double ¢Y) 78 mass = fabs((y1 - y0) * (x2 - x0)); // Special case 1a 82 mass = fabs((y1 - y0) * (x1 - x0)); // Special case 1b 89 mass = fabs((x2 - x0) * (y2 - y0)); // Special case 2a 93 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 2a 98 mass = fabs((x1 - x0) * (y2 - y0)); // Special case 3 117 // the mass is the base * height 120 mass = len1 * sqrt(dx * dx + dy * dy); 124 mass = fabs( (y1 - y0) * (x2 - x0) );
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
KinematicBodyTest.java | 47 MassData mass = new MassData();
local 48 mass.mass = 1f;
49 body.setMassData(mass);
|
/prebuilts/go/darwin-x86/src/sort/ |
example_keys_test.go | 19 mass earthMass 69 mass := func(p1, p2 *Planet) bool { 70 return p1.mass < p2.mass 83 By(mass).Sort(planets) 84 fmt.Println("By mass:", planets) 93 // By mass: [{Mercury 0.055 0.4} {Mars 0.107 1.5} {Venus 0.815 0.7} {Earth 1 1}]
|
/prebuilts/go/linux-x86/src/sort/ |
example_keys_test.go | 19 mass earthMass 69 mass := func(p1, p2 *Planet) bool { 70 return p1.mass < p2.mass 83 By(mass).Sort(planets) 84 fmt.Println("By mass:", planets) 93 // By mass: [{Mercury 0.055 0.4} {Mars 0.107 1.5} {Venus 0.815 0.7} {Earth 1 1}]
|
/external/libgdx/extensions/gdx-bullet/jni/swig-src/dynamics/com/badlogic/gdx/physics/bullet/dynamics/ |
btRigidBody.java | 85 public btRigidBody(float mass, btMotionState motionState, btCollisionShape collisionShape, Vector3 localInertia) { 86 this(false, mass, motionState, collisionShape, localInertia); 91 public btRigidBody(float mass, btMotionState motionState, btCollisionShape collisionShape) { 92 this(false, mass, motionState, collisionShape); 209 public btRigidBodyConstructionInfo(float mass, btMotionState motionState, btCollisionShape collisionShape, Vector3 localInertia) { 210 this(false, mass, motionState, collisionShape, localInertia); 215 public btRigidBodyConstructionInfo(float mass, btMotionState motionState, btCollisionShape collisionShape) { 216 this(false, mass, motionState, collisionShape); 372 private btRigidBodyConstructionInfo(boolean dummy, float mass, btMotionState motionState, btCollisionShape collisionShape, Vector3 localInertia) { 373 this(DynamicsJNI.new_btRigidBody_btRigidBodyConstructionInfo__SWIG_0(dummy, mass, btMotionState.getCPtr(motionState), motionState, btCollisionShape.getCPtr(collisionShape), collis (…) [all...] |