Home
last modified time | relevance | path

Searched refs:localCenter (Results 1 – 25 of 36) sorted by relevance

12

/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/common/
DSweep.java37 public final Vec2 localCenter; field in Sweep
47 String s = "Sweep:\nlocalCenter: " + localCenter + "\n"; in toString()
55 localCenter = new Vec2(); in Sweep()
67 localCenter.set(other.localCenter); in set()
95 xf.p.x -= q.c * localCenter.x - q.s * localCenter.y; in getTransform()
96 xf.p.y -= q.s * localCenter.x + q.c * localCenter.y; in getTransform()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/
DBody.java132 m_sweep.localCenter.setZero(); in Body()
327 Transform.mulToOutUnsafe(m_xf, m_sweep.localCenter, m_sweep.c); in setTransform()
377 return m_sweep.localCenter; in getLocalCenter()
577 * (m_sweep.localCenter.x * m_sweep.localCenter.x + m_sweep.localCenter.y in getInertia()
578 * m_sweep.localCenter.y); in getInertia()
595 * (m_sweep.localCenter.x * m_sweep.localCenter.x + m_sweep.localCenter.y in getMassData()
596 * m_sweep.localCenter.y); in getMassData()
597 data.center.x = m_sweep.localCenter.x; in getMassData()
598 data.center.y = m_sweep.localCenter.y; in getMassData()
639 m_sweep.localCenter.set(massData.center); in setMassData()
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/
Db2Body.cpp62 m_sweep.localCenter.SetZero(); in b2Body()
288 m_sweep.localCenter.SetZero(); in ResetMassData()
302 b2Vec2 localCenter = b2Vec2_zero; in ResetMassData() local
313 localCenter += massData.mass * massData.center; in ResetMassData()
321 localCenter *= m_invMass; in ResetMassData()
333 m_I -= m_mass * b2Dot(localCenter, localCenter); in ResetMassData()
346 m_sweep.localCenter = localCenter; in ResetMassData()
347 m_sweep.c0 = m_sweep.c = b2Mul(m_xf, m_sweep.localCenter); in ResetMassData()
387 m_sweep.localCenter = massData->center; in SetMassData()
388 m_sweep.c0 = m_sweep.c = b2Mul(m_xf, m_sweep.localCenter); in SetMassData()
[all …]
Db2Body.h496 return m_sweep.localCenter; in GetLocalCenter()
546 return m_I + m_mass * b2Dot(m_sweep.localCenter, m_sweep.localCenter); in GetInertia()
552 data->I = m_I + m_mass * b2Dot(m_sweep.localCenter, m_sweep.localCenter); in GetMassData()
553 data->center = m_sweep.localCenter; in GetMassData()
837 m_xf.p = m_sweep.c - b2Mul(m_xf.q, m_sweep.localCenter); in SynchronizeTransform()
847 m_xf.p = m_sweep.c - b2Mul(m_xf.q, m_sweep.localCenter); in Advance()
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/
DBody.java221 private final Vector2 localCenter = new Vector2(); field in Body
227 localCenter.x = tmp[0]; in getLocalCenter()
228 localCenter.y = tmp[1]; in getLocalCenter()
229 return localCenter; in getLocalCenter()
232 private native void jniGetLocalCenter (long addr, float[] localCenter); /* in jniGetLocalCenter() argument
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionShapes/
DbtScaledBvhTriangleMeshShape.cpp95 btVector3 localCenter = btScalar(0.5)*(localAabbMax+localAabbMin); in getAabb() local
99 btVector3 center = trans(localCenter); in getAabb()
DbtTriangleMeshShape.cpp52 btVector3 localCenter = btScalar(0.5)*(m_localAabbMax+m_localAabbMin); in getAabb() local
56 btVector3 center = trans(localCenter); in getAabb()
DbtCompoundShape.cpp172 btVector3 localCenter = btScalar(0.5)*(m_localAabbMax+m_localAabbMin); in getAabb() local
178 localCenter.setValue(0,0,0); in getAabb()
185 btVector3 center = trans(localCenter); in getAabb()
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/Joints/
Db2GearJoint.cpp137 m_lcA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
138 m_lcB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
139 m_lcC = m_bodyC->m_sweep.localCenter; in InitVelocityConstraints()
140 m_lcD = m_bodyD->m_sweep.localCenter; in InitVelocityConstraints()
Db2RopeJoint.cpp50 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
51 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
Db2FrictionJoint.cpp60 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
61 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
Db2PrismaticJoint.cpp130 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
131 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
523 b2Vec2 rA = b2Mul(bA->m_xf.q, m_localAnchorA - bA->m_sweep.localCenter); in GetJointSpeed()
524 b2Vec2 rB = b2Mul(bB->m_xf.q, m_localAnchorB - bB->m_sweep.localCenter); in GetJointSpeed()
Db2DistanceJoint.cpp66 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
67 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
Db2MotorJoint.cpp65 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
66 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
Db2PulleyJoint.cpp77 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
78 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
Db2WheelJoint.cpp81 m_localCenterA = m_bodyA->m_sweep.localCenter; in InitVelocityConstraints()
82 m_localCenterB = m_bodyB->m_sweep.localCenter; in InitVelocityConstraints()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/
DBody.java99 private final Vector2 localCenter = new Vector2(); field in Body
103 localCenter.set(lc.x, lc.y); in getLocalCenter()
104 return localCenter; in getLocalCenter()
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/
Dcom.badlogic.gdx.physics.box2d.Body.cpp111 float* localCenter = (float*)env->GetPrimitiveArrayCritical(obj_localCenter, 0); in Java_com_badlogic_gdx_physics_box2d_Body_jniGetLocalCenter() local
118 localCenter[0] = w.x; in Java_com_badlogic_gdx_physics_box2d_Body_jniGetLocalCenter()
119 localCenter[1] = w.y; in Java_com_badlogic_gdx_physics_box2d_Body_jniGetLocalCenter()
121 env->ReleasePrimitiveArrayCritical(obj_localCenter, localCenter, 0); in Java_com_badlogic_gdx_physics_box2d_Body_jniGetLocalCenter()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/joints/
DGearJoint.java234 m_lcA.set(m_bodyA.m_sweep.localCenter); in initVelocityConstraints()
235 m_lcB.set(m_bodyB.m_sweep.localCenter); in initVelocityConstraints()
236 m_lcC.set(m_bodyC.m_sweep.localCenter); in initVelocityConstraints()
237 m_lcD.set(m_bodyD.m_sweep.localCenter); in initVelocityConstraints()
DFrictionJoint.java129 m_localCenterA.set(m_bodyA.m_sweep.localCenter); in initVelocityConstraints()
130 m_localCenterB.set(m_bodyB.m_sweep.localCenter); in initVelocityConstraints()
DRopeJoint.java59 m_localCenterA.set(m_bodyA.m_sweep.localCenter); in initVelocityConstraints()
60 m_localCenterB.set(m_bodyB.m_sweep.localCenter); in initVelocityConstraints()
DDistanceJoint.java171 m_localCenterA.set(m_bodyA.m_sweep.localCenter); in initVelocityConstraints()
172 m_localCenterB.set(m_bodyB.m_sweep.localCenter); in initVelocityConstraints()
DMotorJoint.java171 m_localCenterA.set(m_bodyA.m_sweep.localCenter); in initVelocityConstraints()
172 m_localCenterB.set(m_bodyB.m_sweep.localCenter); in initVelocityConstraints()
DPrismaticJoint.java219 temp.set(m_localAnchorA).subLocal(bA.m_sweep.localCenter); in getJointSpeed()
222 temp.set(m_localAnchorB).subLocal(bB.m_sweep.localCenter); in getJointSpeed()
395 m_localCenterA.set(m_bodyA.m_sweep.localCenter); in initVelocityConstraints()
396 m_localCenterB.set(m_bodyB.m_sweep.localCenter); in initVelocityConstraints()
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/LinearMath/
DbtAabbUtil2.h201 btVector3 localCenter = btScalar(0.5)*(localAabbMax+localAabbMin); in btTransformAabb() local
203 btVector3 center = trans(localCenter); in btTransformAabb()

12