/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
Sphere.java | 39 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.HALF_PI + FastMath.asin(fZFraction))); [all...] |
Torus.java | 40 import com.jme3.math.FastMath; 138 float theta = FastMath.TWO_PI * circleFraction; 139 float cosTheta = FastMath.cos(theta); 140 float sinTheta = FastMath.sin(theta); 149 float phi = FastMath.TWO_PI * radialFraction; 150 float cosPhi = FastMath.cos(phi); 151 float sinPhi = FastMath.sin(phi);
|
/external/jmonkeyengine/engine/src/test/jme3test/light/ |
TestLightNode.java | 40 import com.jme3.math.FastMath; 63 g.rotate(-FastMath.HALF_PI, 0, 0); 106 angle %= FastMath.TWO_PI; 108 movingNode.setLocalTranslation(new Vector3f(FastMath.cos(angle) * 3f, 2, FastMath.sin(angle) * 3f));
|
TestSpotLight.java | 67 spot.setSpotInnerAngle(5*FastMath.DEG_TO_RAD); 68 spot.setSpotOuterAngle(10*FastMath.DEG_TO_RAD); 119 signpost.rotate(0, FastMath.HALF_PI, 0); 146 angle %= FastMath.TWO_PI; 148 spot.setPosition(new Vector3f(FastMath.cos(angle) * 30f, 34.013165f, FastMath.sin(angle) * 30f));
|
TestTangentGenBadUV.java | 40 import com.jme3.math.FastMath; 103 angle %= FastMath.TWO_PI; 105 pl.setPosition(new Vector3f(FastMath.cos(angle) * 2f, 0.5f, FastMath.sin(angle) * 2f));
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/shapes/ |
EmitterMeshFaceShape.java | 3 import com.jme3.math.FastMath; 46 normals.add(FastMath.computeNormal(vertexTable[indices[0]], vertexTable[indices[1]], vertexTable[indices[2]])); 60 int meshIndex = FastMath.nextRandomInt(0, vertices.size() - 1); 62 int vertIndex = FastMath.nextRandomInt(0, vertices.get(meshIndex).size() / 3 - 1) * 3; 64 float moveFactor = FastMath.nextRandomFloat(); 69 moveFactor = FastMath.nextRandomFloat(); 83 int meshIndex = FastMath.nextRandomInt(0, vertices.size() - 1); 85 int faceIndex = FastMath.nextRandomInt(0, vertices.get(meshIndex).size() / 3 - 1); 88 float moveFactor = FastMath.nextRandomFloat(); 93 moveFactor = FastMath.nextRandomFloat() [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
FastMath.java | 37 * <code>FastMath</code> provides 'fast' math approximations and float equivalents of Math 41 * @version $Id: FastMath.java,v 1.45 2007/08/26 08:44:20 irrisor Exp $ 43 final public class FastMath { 45 private FastMath() { 373 FastMath.interpolateCatmullRom(startRange, curveTension, p0, p1, p2, p3, start); 377 FastMath.interpolateCatmullRom(endRange, curveTension, p0, p1, p2, p3, end); 379 Vector3f middle = FastMath.interpolateCatmullRom(middleValue, curveTension, p0, p1, p2, p3); 404 FastMath.interpolateBezier(t, p0, p1, p2, p3, v2); 806 store.y = sphereCoords.x * FastMath.sin(sphereCoords.z); 807 float a = sphereCoords.x * FastMath.cos(sphereCoords.z) [all...] |
Quaternion.java | 254 sinPitch = FastMath.sin(angle);
255 cosPitch = FastMath.cos(angle);
257 sinRoll = FastMath.sin(angle);
258 cosRoll = FastMath.cos(angle);
260 sinYaw = FastMath.sin(angle);
261 cosYaw = FastMath.cos(angle);
303 angles[1] = 2 * FastMath.atan2(x, w);
304 angles[2] = FastMath.HALF_PI;
307 angles[1] = -2 * FastMath.atan2(x, w);
308 angles[2] = -FastMath.HALF_PI; [all...] |
Vector2f.java | 289 return FastMath.sqrt(lengthSquared()); 337 return FastMath.sqrt(distanceSquared(v)); 577 float angle = FastMath.acos(dotProduct); 592 float angle = FastMath.atan2(otherVector.y, otherVector.x) 593 - FastMath.atan2(y, x); 622 return FastMath.atan2(y, x); 752 float newX = FastMath.cos(angle) * x - FastMath.sin(angle) * y; 753 float newY = FastMath.sin(angle) * x + FastMath.cos(angle) * y [all...] |
/external/jmonkeyengine/engine/src/android/jme3test/android/ |
TestBumpModel.java | 41 import com.jme3.math.FastMath; 89 angle %= FastMath.TWO_PI; 91 pl.setPosition(new Vector3f(FastMath.cos(angle) * 6f, 3f, FastMath.sin(angle) * 6f));
|
TestNormalMapping.java | 41 import com.jme3.math.FastMath; 93 angle %= FastMath.TWO_PI; 95 pl.setPosition(new Vector3f(FastMath.cos(angle) * 4f, 0.5f, FastMath.sin(angle) * 4f));
|
/external/jmonkeyengine/engine/src/test/jme3test/batching/ |
TestBatchNode.java | 12 import com.jme3.math.FastMath; 89 cube2.setLocalTranslation(FastMath.sin(-time)*3, FastMath.cos(time)*3, 0); 91 cube2.setLocalScale(Math.max(FastMath.sin(time),0.5f));
|
/external/jmonkeyengine/engine/src/test/jme3test/material/ |
TestBumpModel.java | 40 import com.jme3.math.FastMath; 97 angle %= FastMath.TWO_PI; 99 pl.setPosition(new Vector3f(FastMath.cos(angle) * 6f, 3f, FastMath.sin(angle) * 6f));
|
/external/jmonkeyengine/engine/src/test/jme3test/model/ |
TestMonkeyHead.java | 39 import com.jme3.math.FastMath; 94 angle %= FastMath.TWO_PI; 96 pl.setPosition(new Vector3f(FastMath.cos(angle) * 6f, 3f, FastMath.sin(angle) * 6f));
|
/external/jmonkeyengine/engine/src/core/com/jme3/input/ |
ChaseCamera.java | 39 import com.jme3.math.FastMath;
56 protected float maxVerticalRotation = FastMath.PI / 2;
68 protected float vRotation = FastMath.PI / 6;
270 float hDistance = (distance) * FastMath.sin((FastMath.PI / 2) - vRotation);
271 pos.set(hDistance * FastMath.cos(rotation), (distance) * FastMath.sin(vRotation), hDistance * FastMath.sin(rotation));
375 targetRotation = FastMath.TWO_PI - FastMath.acos(a.dot(b)); [all...] |
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
TextureGeneratorWood.java | 33 import com.jme3.math.FastMath; 135 int n = (int) (x * FastMath.INV_TWO_PI); 136 x -= n * FastMath.TWO_PI; 138 x += FastMath.TWO_PI; 140 return x * FastMath.INV_TWO_PI; 147 return 1.0f - 2.0f * FastMath.abs((float) Math.floor(x * FastMath.INV_TWO_PI + 0.5f) - x * FastMath.INV_TWO_PI);
|
TextureGeneratorNoise.java | 34 import com.jme3.math.FastMath; 75 random = FastMath.rand.nextInt(); 83 texres.intensity = FastMath.clamp(val, 0.0f, 1.0f);
|
/external/jmonkeyengine/engine/src/core/com/jme3/shadow/ |
PssmShadowUtil.java | 35 import com.jme3.math.FastMath; 60 float log = near * FastMath.pow((far / near), IDM);
|
/external/jmonkeyengine/engine/src/test/jme3test/model/anim/ |
TestOgreComplexAnim.java | 43 import com.jme3.math.FastMath; 122 if (angle > FastMath.HALF_PI / 2f){ 123 angle = FastMath.HALF_PI / 2f; 125 }else if (angle < -FastMath.HALF_PI / 2f){ 126 angle = -FastMath.HALF_PI / 2f;
|
TestAnimationFactory.java | 8 import com.jme3.math.FastMath;
67 animationFactory.addTimeRotation(0.5f,new Quaternion().fromAngleAxis(FastMath.QUARTER_PI, Vector3f.UNIT_Z));
72 animationFactory.addTimeRotationAngles(2, FastMath.TWO_PI,0, 0);
|
/external/jmonkeyengine/engine/src/core/com/jme3/bounding/ |
BoundingBox.java | 294 box.xExtent = FastMath.abs(vars.vect2.getX());
295 box.yExtent = FastMath.abs(vars.vect2.getY());
296 box.zExtent = FastMath.abs(vars.vect2.getZ());
326 box.xExtent = FastMath.abs(vars.vect1.getX());
327 box.yExtent = FastMath.abs(vars.vect1.getY());
328 box.zExtent = FastMath.abs(vars.vect1.getZ());
343 float radius = FastMath.abs(xExtent * plane.getNormal().getX())
344 + FastMath.abs(yExtent * plane.getNormal().getY())
345 + FastMath.abs(zExtent * plane.getNormal().getZ());
591 if (FastMath.abs(center.x - bs.center.x) < bs.getRadius() [all...] |
Intersection.java | 34 import com.jme3.math.FastMath; 122 float fex = FastMath.abs(e0.x); 123 float fey = FastMath.abs(e0.y); 124 float fez = FastMath.abs(e0.z); 161 fex = FastMath.abs(e1.x); 162 fey = FastMath.abs(e1.y); 163 fez = FastMath.abs(e1.z); 198 fex = FastMath.abs(e2.x); 199 fey = FastMath.abs(e2.y); 200 fez = FastMath.abs(e2.z) [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/bullet/ |
TestPhysicsCar.java | 46 import com.jme3.math.FastMath; 118 vehicle.setSuspensionCompression(compValue * 2.0f * FastMath.sqrt(stiffness)); 119 vehicle.setSuspensionDamping(dampValue * 2.0f * FastMath.sqrt(stiffness)); 137 wheels1.rotate(0, FastMath.HALF_PI, 0); 145 wheels2.rotate(0, FastMath.HALF_PI, 0); 153 wheels3.rotate(0, FastMath.HALF_PI, 0); 161 wheels4.rotate(0, FastMath.HALF_PI, 0);
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/lights/ |
LightHelper.java | 40 import com.jme3.math.FastMath;
89 float outerAngle = ((Number) structure.getFieldValue("spotsize")).floatValue()*FastMath.DEG_TO_RAD * 0.5f;
94 spotblend = FastMath.clamp(spotblend, 0, 1);
|
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/system/lwjgl/ |
LwjglSmoothingTimer.java | 35 import com.jme3.math.FastMath; 185 if ( lastTPF < FastMath.FLT_EPSILON ) { 186 lastTPF = FastMath.FLT_EPSILON;
|