/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/ |
HumanoidRagdollPreset.java | 7 import com.jme3.math.FastMath; 17 boneMap.put("head", new JointPreset(FastMath.QUARTER_PI, -FastMath.QUARTER_PI, FastMath.QUARTER_PI, -FastMath.QUARTER_PI, FastMath.QUARTER_PI, -FastMath.QUARTER_PI)); 19 boneMap.put("torso", new JointPreset(FastMath.QUARTER_PI, -FastMath.QUARTER_PI, 0, 0, FastMath.QUARTER_PI, -FastMath.QUARTER_PI)) [all...] |
/frameworks/base/core/java/com/android/internal/util/ |
FastMath.java | 22 public class FastMath {
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/ |
EmitterMeshConvexHullShape.java | 3 import com.jme3.math.FastMath; 43 store.multLocal(FastMath.nextRandomFloat()); 61 store.multLocal(FastMath.nextRandomFloat());
|
EmitterBoxShape.java | 38 import com.jme3.math.FastMath; 61 store.x = min.x + len.x * FastMath.nextRandomFloat(); 62 store.y = min.y + len.y * FastMath.nextRandomFloat(); 63 store.z = min.z + len.z * FastMath.nextRandomFloat();
|
EmitterSphereShape.java | 38 import com.jme3.math.FastMath; 77 store.x = (FastMath.nextRandomFloat() * 2f - 1f) * radius; 78 store.y = (FastMath.nextRandomFloat() * 2f - 1f) * radius; 79 store.z = (FastMath.nextRandomFloat() * 2f - 1f) * radius;
|
/external/jmonkeyengine/engine/src/test/jme3test/math/ |
TestHalfFloat.java | 35 import com.jme3.math.FastMath; 48 short half = FastMath.convertFloatToHalf(flt); 49 float flt2 = FastMath.convertHalfToFloat(half);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
FaultHeightMap.java | 34 import com.jme3.math.FastMath;
180 / (FastMath.sqrt(FastMath.sqr(x2 - x1) + FastMath.sqr(y2 - y1)));
188 int intRadius = (int) FastMath.floor(radius);
201 float dmag = FastMath.sqrt(FastMath.sqr(dx) + FastMath.sqr(dy));
204 dist = FastMath.sign(dmag - radius)
205 * FastMath.sqrt(FastMath.sqr(i - rx) + FastMath.sqr(j - ry)); [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/light/ |
SpotLight.java | 36 import com.jme3.math.FastMath; 59 protected float spotInnerAngle = FastMath.QUARTER_PI / 8; 60 protected float spotOuterAngle = FastMath.QUARTER_PI / 6; 71 float innerCos=FastMath.cos(spotInnerAngle); 72 float outerCos=FastMath.cos(spotOuterAngle); 198 oc.write(spotInnerAngle, "spotInnerAngle", FastMath.QUARTER_PI / 8); 199 oc.write(spotOuterAngle, "spotOuterAngle", FastMath.QUARTER_PI / 6); 207 spotInnerAngle = ic.readFloat("spotInnerAngle", FastMath.QUARTER_PI / 8); 208 spotOuterAngle = ic.readFloat("spotOuterAngle", FastMath.QUARTER_PI / 6);
|
/external/jmonkeyengine/engine/src/test/jme3test/audio/ |
TestReverb.java | 34 import com.jme3.math.FastMath; 67 v.setX(FastMath.nextRandomFloat()); 68 v.setY(FastMath.nextRandomFloat()); 69 v.setZ(FastMath.nextRandomFloat()); 76 nextTime = FastMath.nextRandomFloat() * 2 + 0.5f;
|
TestDoppler.java | 38 import com.jme3.math.FastMath; 54 private float angle = FastMath.TWO_PI; 88 if (angle > FastMath.TWO_PI){ 89 angle = FastMath.TWO_PI;
|
/external/jmonkeyengine/engine/src/test/jme3test/collision/ |
TestRayCasting.java | 38 import com.jme3.math.FastMath; 77 teapot.rotate(FastMath.HALF_PI, FastMath.HALF_PI, FastMath.HALF_PI);
|
/external/jmonkeyengine/engine/src/test/jme3test/effect/ |
TestMovingParticle.java | 41 import com.jme3.math.FastMath; 89 angle %= FastMath.TWO_PI; 90 float x = FastMath.cos(angle) * 2; 91 float y = FastMath.sin(angle) * 2;
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Ring.java | 189 * outerRadius, r = FastMath.sqrt(inner2
190 + FastMath.nextRandomFloat() * (outer2 - inner2)), theta = FastMath
192 * FastMath.TWO_PI;
194 if (b1.lengthSquared() < FastMath.FLT_EPSILON) {
199 result.set(b1).multLocal(r * FastMath.cos(theta)).addLocal(center);
200 result.scaleAdd(r * FastMath.sin(theta), b2, result);
|
Eigen3f.java | 148 float max = FastMath.abs(mat.m00);
149 float abs = FastMath.abs(mat.m01);
154 abs = FastMath.abs(mat.m02);
158 abs = FastMath.abs(mat.m11);
162 abs = FastMath.abs(mat.m12);
166 abs = FastMath.abs(mat.m22);
197 float max = FastMath.abs(p00);
199 float fAbs = FastMath.abs(p01);
203 fAbs = FastMath.abs(p11);
209 if (max >= FastMath.ZERO_TOLERANCE) { [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/model/ |
TestOgreLoading.java | 38 import com.jme3.math.FastMath;
101 angle1 %= FastMath.TWO_PI;
104 angle2 %= FastMath.TWO_PI;
106 pl.setPosition(new Vector3f(FastMath.cos(angle1) * 4f, 0.5f, FastMath.sin(angle1) * 4f));
107 p2.setPosition(new Vector3f(FastMath.cos(angle2) * 4f, 0.5f, FastMath.sin(angle2) * 4f));
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/ |
WireSphere.java | 35 import com.jme3.math.FastMath;
109 float rate = FastMath.TWO_PI / (float) samples;
112 float x = radius * FastMath.cos(angle);
113 float y = radius * FastMath.sin(angle);
120 float x = radius * FastMath.cos(angle);
121 float y = radius * FastMath.sin(angle);
135 float scale = FastMath.sin(b * FastMath.PI);
137 float x = radius * FastMath.cos(angle);
138 float y = radius * FastMath.sin(angle); [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
PQTorus.java | 40 import com.jme3.math.FastMath; 137 final float thetaStep = (FastMath.TWO_PI / steps); 138 final float betaStep = (FastMath.TWO_PI / radialSamples); 159 r = (0.5f * (2.0f + FastMath.sin(q * theta)) * radius); 160 x = (r * FastMath.cos(p * theta) * radius); 161 y = (r * FastMath.sin(p * theta) * radius); 162 z = (r * FastMath.cos(q * theta) * radius); 166 r = (0.5f * (2.0f + FastMath.sin(q * (theta + 0.01f))) * radius); 167 x = (r * FastMath.cos(p * (theta + 0.01f)) * radius); 168 y = (r * FastMath.sin(p * (theta + 0.01f)) * radius) [all...] |
/external/jmonkeyengine/engine/src/android/jme3test/android/ |
TestMovingParticle.java | 43 import com.jme3.math.FastMath; 97 angle %= FastMath.TWO_PI; 98 float x = FastMath.cos(angle) * 2; 99 float y = FastMath.sin(angle) * 2;
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/influencers/ |
DefaultParticleInfluencer.java | 9 import com.jme3.math.FastMath; 41 temp.set(FastMath.nextRandomFloat(), FastMath.nextRandomFloat(), FastMath.nextRandomFloat());
|
NewtonianParticleInfluencer.java | 9 import com.jme3.math.FastMath; 44 m.fromAngleNormalAxis(FastMath.PI * surfaceTangentRotation, particle.velocity); 110 temp.set(FastMath.nextRandomFloat() * velocityVariation, FastMath.nextRandomFloat() * velocityVariation, FastMath.nextRandomFloat() * velocityVariation);
|
/external/jmonkeyengine/engine/src/test/jme3test/light/ |
TestSimpleLighting.java | 40 import com.jme3.math.FastMath; 106 angle %= FastMath.TWO_PI; 108 pl.setPosition(new Vector3f(FastMath.cos(angle) * 2f, 0.5f, FastMath.sin(angle) * 2f));
|
/external/jmonkeyengine/engine/src/test/jme3test/material/ |
TestNormalMapping.java | 39 import com.jme3.math.FastMath; 87 angle %= FastMath.TWO_PI; 89 pl.setPosition(new Vector3f(FastMath.cos(angle) * 4f, 0.5f, FastMath.sin(angle) * 4f));
|
TestSimpleBumps.java | 39 import com.jme3.math.FastMath; 87 angle %= FastMath.TWO_PI; 89 pl.setPosition(new Vector3f(FastMath.cos(angle) * 4f, 0.5f, FastMath.sin(angle) * 4f));
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
AreaUtils.java | 38 import com.jme3.math.FastMath; 75 return radius * radius * FastMath.PI; 83 return ((radiusSquare * screenWidth * screenWidth) / (distance * distance * 4)) * FastMath.PI;
|
/external/jmonkeyengine/engine/src/test/jme3test/gui/ |
TestSoftwareMouse.java | 38 import com.jme3.math.FastMath; 66 x = FastMath.clamp(x, 0, settings.getWidth()); 67 y = FastMath.clamp(y, 0, settings.getHeight());
|