Home
last modified time | relevance | path

Searched refs:float32 (Results 1 – 25 of 103) sorted by relevance

12345

/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/Joints/
Db2WheelJoint.h62 float32 maxMotorTorque;
65 float32 motorSpeed;
68 float32 frequencyHz;
71 float32 dampingRatio;
87 b2Vec2 GetReactionForce(float32 inv_dt) const;
88 float32 GetReactionTorque(float32 inv_dt) const;
100 float32 GetJointTranslation() const;
103 float32 GetJointSpeed() const;
112 void SetMotorSpeed(float32 speed);
115 float32 GetMotorSpeed() const;
[all …]
Db2PrismaticJoint.h61 float32 referenceAngle;
67 float32 lowerTranslation;
70 float32 upperTranslation;
76 float32 maxMotorForce;
79 float32 motorSpeed;
92 b2Vec2 GetReactionForce(float32 inv_dt) const;
93 float32 GetReactionTorque(float32 inv_dt) const;
105 float32 GetReferenceAngle() const { return m_referenceAngle; } in GetReferenceAngle()
108 float32 GetJointTranslation() const;
111 float32 GetJointSpeed() const;
[all …]
Db2RevoluteJoint.h62 float32 referenceAngle;
68 float32 lowerAngle;
71 float32 upperAngle;
77 float32 motorSpeed;
81 float32 maxMotorTorque;
103 float32 GetReferenceAngle() const { return m_referenceAngle; } in GetReferenceAngle()
106 float32 GetJointAngle() const;
109 float32 GetJointSpeed() const;
118 float32 GetLowerLimit() const;
121 float32 GetUpperLimit() const;
[all …]
Db2DistanceJoint.h54 float32 length;
58 float32 frequencyHz;
61 float32 dampingRatio;
76 b2Vec2 GetReactionForce(float32 inv_dt) const;
80 float32 GetReactionTorque(float32 inv_dt) const;
90 void SetLength(float32 length);
91 float32 GetLength() const;
94 void SetFrequency(float32 hz);
95 float32 GetFrequency() const;
98 void SetDampingRatio(float32 ratio);
[all …]
Db2MotorJoint.h44 float32 angularOffset;
47 float32 maxForce;
50 float32 maxTorque;
53 float32 correctionFactor;
65 b2Vec2 GetReactionForce(float32 inv_dt) const;
66 float32 GetReactionTorque(float32 inv_dt) const;
73 void SetAngularOffset(float32 angularOffset);
74 float32 GetAngularOffset() const;
77 void SetMaxForce(float32 force);
80 float32 GetMaxForce() const;
[all …]
Db2PulleyJoint.h24 const float32 b2_minPulleyLength = 2.0f;
47 float32 ratio);
62 float32 lengthA;
65 float32 lengthB;
68 float32 ratio;
85 b2Vec2 GetReactionForce(float32 inv_dt) const;
86 float32 GetReactionTorque(float32 inv_dt) const;
95 float32 GetLengthA() const;
98 float32 GetLengthB() const;
101 float32 GetRatio() const;
[all …]
Db2MouseJoint.h44 float32 maxForce;
47 float32 frequencyHz;
50 float32 dampingRatio;
71 b2Vec2 GetReactionForce(float32 inv_dt) const;
74 float32 GetReactionTorque(float32 inv_dt) const;
81 void SetMaxForce(float32 force);
82 float32 GetMaxForce() const;
85 void SetFrequency(float32 hz);
86 float32 GetFrequency() const;
89 void SetDampingRatio(float32 ratio);
[all …]
Db2WeldJoint.h50 float32 referenceAngle;
54 float32 frequencyHz;
57 float32 dampingRatio;
68 b2Vec2 GetReactionForce(float32 inv_dt) const;
69 float32 GetReactionTorque(float32 inv_dt) const;
78 float32 GetReferenceAngle() const { return m_referenceAngle; } in GetReferenceAngle()
81 void SetFrequency(float32 hz) { m_frequencyHz = hz; } in SetFrequency()
82 float32 GetFrequency() const { return m_frequencyHz; } in GetFrequency()
85 void SetDampingRatio(float32 ratio) { m_dampingRatio = ratio; } in SetDampingRatio()
86 float32 GetDampingRatio() const { return m_dampingRatio; } in GetDampingRatio()
[all …]
Db2WheelJoint.cpp88 float32 mA = m_invMassA, mB = m_invMassB; in InitVelocityConstraints()
89 float32 iA = m_invIA, iB = m_invIB; in InitVelocityConstraints()
92 float32 aA = data.positions[m_indexA].a; in InitVelocityConstraints()
94 float32 wA = data.velocities[m_indexA].w; in InitVelocityConstraints()
97 float32 aB = data.positions[m_indexB].a; in InitVelocityConstraints()
99 float32 wB = data.velocities[m_indexB].w; in InitVelocityConstraints()
132 float32 invMass = mA + mB + iA * m_sAx * m_sAx + iB * m_sBx * m_sBx; in InitVelocityConstraints()
138 float32 C = b2Dot(d, m_ax); in InitVelocityConstraints()
141 float32 omega = 2.0f * b2_pi * m_frequencyHz; in InitVelocityConstraints()
144 float32 d = 2.0f * m_springMass * m_dampingRatio * omega; in InitVelocityConstraints()
[all …]
Db2FrictionJoint.h47 float32 maxForce;
50 float32 maxTorque;
61 b2Vec2 GetReactionForce(float32 inv_dt) const;
62 float32 GetReactionTorque(float32 inv_dt) const;
71 void SetMaxForce(float32 force);
74 float32 GetMaxForce() const;
77 void SetMaxTorque(float32 torque);
80 float32 GetMaxTorque() const;
100 float32 m_angularImpulse;
101 float32 m_maxForce;
[all …]
Db2PrismaticJoint.cpp138 float32 aA = data.positions[m_indexA].a; in InitVelocityConstraints()
140 float32 wA = data.velocities[m_indexA].w; in InitVelocityConstraints()
143 float32 aB = data.positions[m_indexB].a; in InitVelocityConstraints()
145 float32 wB = data.velocities[m_indexB].w; in InitVelocityConstraints()
154 float32 mA = m_invMassA, mB = m_invMassB; in InitVelocityConstraints()
155 float32 iA = m_invIA, iB = m_invIB; in InitVelocityConstraints()
177 float32 s1test; in InitVelocityConstraints()
180 float32 k11 = mA + mB + iA * m_s1 * m_s1 + iB * m_s2 * m_s2; in InitVelocityConstraints()
181 float32 k12 = iA * m_s1 + iB * m_s2; in InitVelocityConstraints()
182 float32 k13 = iA * m_s1 * m_a1 + iB * m_s2 * m_a2; in InitVelocityConstraints()
[all …]
Db2RopeJoint.h47 float32 maxLength;
64 b2Vec2 GetReactionForce(float32 inv_dt) const;
65 float32 GetReactionTorque(float32 inv_dt) const;
74 void SetMaxLength(float32 length) { m_maxLength = length; } in SetMaxLength()
75 float32 GetMaxLength() const;
94 float32 m_maxLength;
95 float32 m_length;
96 float32 m_impulse;
106 float32 m_invMassA;
107 float32 m_invMassB;
[all …]
Db2GearJoint.h44 float32 ratio;
62 b2Vec2 GetReactionForce(float32 inv_dt) const;
63 float32 GetReactionTorque(float32 inv_dt) const;
72 void SetRatio(float32 ratio);
73 float32 GetRatio() const;
107 float32 m_referenceAngleA;
108 float32 m_referenceAngleB;
110 float32 m_constant;
111 float32 m_ratio;
113 float32 m_impulse;
[all …]
Db2MotorJoint.cpp42 float32 angleA = bodyA->GetAngle(); in Initialize()
43 float32 angleB = bodyB->GetAngle(); in Initialize()
73 float32 aA = data.positions[m_indexA].a; in InitVelocityConstraints()
75 float32 wA = data.velocities[m_indexA].w; in InitVelocityConstraints()
78 float32 aB = data.positions[m_indexB].a; in InitVelocityConstraints()
80 float32 wB = data.velocities[m_indexB].w; in InitVelocityConstraints()
97 float32 mA = m_invMassA, mB = m_invMassB; in InitVelocityConstraints()
98 float32 iA = m_invIA, iB = m_invIB; in InitVelocityConstraints()
144 float32 wA = data.velocities[m_indexA].w; in SolveVelocityConstraints()
146 float32 wB = data.velocities[m_indexB].w; in SolveVelocityConstraints()
[all …]
Db2PulleyJoint.cpp38 float32 r) in Initialize()
85 float32 aA = data.positions[m_indexA].a; in InitVelocityConstraints()
87 float32 wA = data.velocities[m_indexA].w; in InitVelocityConstraints()
90 float32 aB = data.positions[m_indexB].a; in InitVelocityConstraints()
92 float32 wB = data.velocities[m_indexB].w; in InitVelocityConstraints()
103 float32 lengthA = m_uA.Length(); in InitVelocityConstraints()
104 float32 lengthB = m_uB.Length(); in InitVelocityConstraints()
125 float32 ruA = b2Cross(m_rA, m_uA); in InitVelocityConstraints()
126 float32 ruB = b2Cross(m_rB, m_uB); in InitVelocityConstraints()
128 float32 mA = m_invMassA + m_invIA * ruA * ruA; in InitVelocityConstraints()
[all …]
Db2RevoluteJoint.cpp75 float32 aA = data.positions[m_indexA].a; in InitVelocityConstraints()
77 float32 wA = data.velocities[m_indexA].w; in InitVelocityConstraints()
79 float32 aB = data.positions[m_indexB].a; in InitVelocityConstraints()
81 float32 wB = data.velocities[m_indexB].w; in InitVelocityConstraints()
97 float32 mA = m_invMassA, mB = m_invMassB; in InitVelocityConstraints()
98 float32 iA = m_invIA, iB = m_invIB; in InitVelocityConstraints()
125 float32 jointAngle = aB - aA - m_referenceAngle; in InitVelocityConstraints()
186 float32 wA = data.velocities[m_indexA].w; in SolveVelocityConstraints()
188 float32 wB = data.velocities[m_indexB].w; in SolveVelocityConstraints()
190 float32 mA = m_invMassA, mB = m_invMassB; in SolveVelocityConstraints()
[all …]
/external/vulkan-validation-layers/libs/glm/detail/
Dglm.cpp83 template struct tvec2<float32, lowp>;
94 template struct tvec2<float32, mediump>;
105 template struct tvec2<float32, highp>;
117 template struct tvec3<float32, lowp>;
128 template struct tvec3<float32, mediump>;
139 template struct tvec3<float32, highp>;
151 template struct tvec4<float32, lowp>;
162 template struct tvec4<float32, mediump>;
173 template struct tvec4<float32, highp>;
177 template struct tmat2x2<float32, lowp>;
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/
Db2TimeStep.h27 float32 step;
28 float32 collide;
29 float32 solve;
30 float32 solveInit;
31 float32 solveVelocity;
32 float32 solvePosition;
33 float32 broadphase;
34 float32 solveTOI;
40 float32 dt; // time step
41 float32 inv_dt; // inverse time step (0 if dt == 0).
[all …]
Db2Body.h81 float32 angle;
87 float32 angularVelocity;
92 float32 linearDamping;
97 float32 angularDamping;
122 float32 gravityScale;
145 b2Fixture* CreateFixture(const b2Shape* shape, float32 density);
161 void SetTransform(const b2Vec2& position, float32 angle);
173 float32 GetAngle() const;
191 void SetAngularVelocity(float32 omega);
195 float32 GetAngularVelocity() const;
[all …]
Db2Fixture.h77 float32 friction;
80 float32 restitution;
83 float32 density;
171 void SetDensity(float32 density);
174 float32 GetDensity() const;
177 float32 GetFriction() const;
181 void SetFriction(float32 friction);
184 float32 GetRestitution() const;
188 void SetRestitution(float32 restitution);
218 float32 m_density;
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Common/
Db2Math.h30 inline bool b2IsValid(float32 x) in b2IsValid()
37 inline float32 b2InvSqrt(float32 x) in b2InvSqrt()
41 float32 x; in b2InvSqrt()
46 float32 xhalf = 0.5f * x; in b2InvSqrt()
63 b2Vec2(float32 x, float32 y) : x(x), y(y) {} in b2Vec2()
69 void Set(float32 x_, float32 y_) { x = x_; y = y_; } in Set()
75 float32 operator () (int32 i) const in operator()
81 float32& operator () (int32 i) in operator()
99 void operator *= (float32 a)
105 float32 Length() const in Length()
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Rope/
Db2Rope.cpp53 m_ims = (float32*)b2Alloc(m_count * sizeof(float32)); in Initialize()
61 float32 m = def->masses[i]; in Initialize()
74 m_Ls = (float32*)b2Alloc(count2 * sizeof(float32)); in Initialize()
75 m_as = (float32*)b2Alloc(count3 * sizeof(float32)); in Initialize()
93 float32 a = b2Cross(d1, d2); in Initialize()
94 float32 b = b2Dot(d1, d2); in Initialize()
105 void b2Rope::Step(float32 h, int32 iterations) in Step()
112 float32 d = expf(- h * m_damping); in Step()
133 float32 inv_h = 1.0f / h; in Step()
150 float32 L = d.Normalize(); in SolveC2()
[all …]
Db2Rope.h47 float32* masses;
53 float32 damping;
56 float32 k2;
59 float32 k3;
73 void Step(float32 timeStep, int32 iterations);
91 void SetAngle(float32 angle);
103 float32* m_ims;
105 float32* m_Ls;
106 float32* m_as;
109 float32 m_damping;
[all …]
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/Contacts/
Db2ContactSolver.cpp38 float32 invMassA, invMassB;
40 float32 invIA, invIB;
42 float32 radiusA, radiusB;
66 float32 radiusA = shapeA->m_radius; in b2ContactSolver()
67 float32 radiusB = shapeB->m_radius; in b2ContactSolver()
147 float32 radiusA = pc->radiusA; in InitializeVelocityConstraints()
148 float32 radiusB = pc->radiusB; in InitializeVelocityConstraints()
154 float32 mA = vc->invMassA; in InitializeVelocityConstraints()
155 float32 mB = vc->invMassB; in InitializeVelocityConstraints()
156 float32 iA = vc->invIA; in InitializeVelocityConstraints()
[all …]
Db2Contact.h37 inline float32 b2MixFriction(float32 friction1, float32 friction2) in b2MixFriction()
44 inline float32 b2MixRestitution(float32 restitution1, float32 restitution2) in b2MixRestitution()
120 void SetFriction(float32 friction);
123 float32 GetFriction() const;
130 void SetRestitution(float32 restitution);
133 float32 GetRestitution() const;
139 void SetTangentSpeed(float32 speed);
142 float32 GetTangentSpeed() const;
214 float32 m_toi;
216 float32 m_friction;
[all …]

12345