Searched refs:FastMath (Results 1 - 25 of 155) sorted by relevance

1234567

/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/control/ragdoll/
H A DHumanoidRagdollPreset.java7 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
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/
H A DEmitterMeshConvexHullShape.java3 import com.jme3.math.FastMath;
43 store.multLocal(FastMath.nextRandomFloat());
61 store.multLocal(FastMath.nextRandomFloat());
H A DEmitterBoxShape.java38 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();
H A DEmitterSphereShape.java38 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/
H A DTestHalfFloat.java35 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/
H A DFaultHeightMap.java34 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
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/light/
H A DSpotLight.java36 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/
H A DTestReverb.java34 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;
H A DTestDoppler.java38 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/
H A DTestRayCasting.java38 import com.jme3.math.FastMath;
77 teapot.rotate(FastMath.HALF_PI, FastMath.HALF_PI, FastMath.HALF_PI);
/external/jmonkeyengine/engine/src/test/jme3test/effect/
H A DTestMovingParticle.java41 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/
H A DRing.java189 * 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);
H A DEigen3f.java148 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
[all...]
/external/jmonkeyengine/engine/src/test/jme3test/model/
H A DTestOgreLoading.java38 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/
H A DWireSphere.java35 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
[all...]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/
H A DPQTorus.java40 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
[all...]
H A DSphere.java39 import com.jme3.math.FastMath;
171 float fAngle = FastMath.TWO_PI * fInvRS * iR;
172 afCos[iR] = FastMath.cos(fAngle);
173 afSin[iR] = FastMath.sin(fAngle);
186 float fAFraction = FastMath.HALF_PI * (-1.0f + fZFactor * iZ); // in (-pi/2, pi/2)
191 fZFraction = FastMath.sin(fAFraction); // in (-1,1)
200 float fSliceRadius = FastMath.sqrt(FastMath.abs(radius * radius
231 FastMath.INV_PI
232 * (FastMath
[all...]
/external/jmonkeyengine/engine/src/android/jme3test/android/
H A DTestMovingParticle.java43 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/
H A DDefaultParticleInfluencer.java9 import com.jme3.math.FastMath;
41 temp.set(FastMath.nextRandomFloat(), FastMath.nextRandomFloat(), FastMath.nextRandomFloat());
H A DNewtonianParticleInfluencer.java9 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/
H A DTestSimpleLighting.java40 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/
H A DTestNormalMapping.java39 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));
H A DTestSimpleBumps.java39 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/
H A DAreaUtils.java38 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/
H A DTestSoftwareMouse.java38 import com.jme3.math.FastMath;
66 x = FastMath.clamp(x, 0, settings.getWidth());
67 y = FastMath.clamp(y, 0, settings.getHeight());

Completed in 2121 milliseconds

1234567