HomeSort by relevance Sort by last modified time
    Searched defs:FastMath (Results 1 - 15 of 15) sorted by null

  /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());
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/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;
  /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...]
Spline.java 218 l = FastMath.getCatmullRomP1toP2Length(CRcontrolPoints.get(i),
233 l = FastMath.getBezierP1toP2Length(controlPoints.get(i),
261 FastMath.interpolateCatmullRom(value, curveTension, CRcontrolPoints.get(currentControlPoint), CRcontrolPoints.get(currentControlPoint + 1), CRcontrolPoints.get(currentControlPoint + 2), CRcontrolPoints.get(currentControlPoint + 3), store);
264 FastMath.interpolateLinear(value, controlPoints.get(currentControlPoint), controlPoints.get(currentControlPoint + 1), store);
267 FastMath.interpolateBezier(value, controlPoints.get(currentControlPoint), controlPoints.get(currentControlPoint + 1), controlPoints.get(currentControlPoint + 2), controlPoints.get(currentControlPoint + 3), store);
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);
  /external/jmonkeyengine/engine/src/core/com/jme3/cinematic/events/
ScaleTrack.java 14 import com.jme3.math.FastMath;
93 spatial.setLocalScale(FastMath.interpolateLinear(value, startScale, endScale));
  /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());
  /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));
  /frameworks/base/graphics/java/android/graphics/
RectF.java 24 import com.android.internal.util.FastMath;
444 dst.set(FastMath.round(left), FastMath.round(top),
445 FastMath.round(right), FastMath.round(bottom));
  /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/core/com/jme3/bounding/
BoundingSphere.java 337 radius = FastMath.sqrt(((A.x - O.x) * (A.x - O.x) + (A.y - O.y)
396 sphere.radius = FastMath.abs(getMaxAxis(trans.getScale()) * radius) + RADIUS_EPSILON - 1f;
412 sphere.radius = FastMath.abs(ax * radius) + RADIUS_EPSILON - 1f;
417 float x = FastMath.abs(scale.x);
418 float y = FastMath.abs(scale.y);
419 float z = FastMath.abs(scale.z);
693 if (FastMath.abs(bb.center.x - center.x) < getRadius()
695 && FastMath.abs(bb.center.y - center.y) < getRadius()
697 && FastMath.abs(bb.center.z - center.z) < getRadius()
757 root = FastMath.sqrt(discr);
    [all...]
  /external/llvm/lib/Transforms/Vectorize/
LoopVectorize.cpp     [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
TextViewTest.java 20 import com.android.internal.util.FastMath;
764 assertEquals(FastMath.round(originalLineHeight * mult + add), mTextView.getLineHeight());
768 assertEquals(FastMath.round(originalLineHeight * mult + add), mTextView.getLineHeight());
774 assertEquals(FastMath.round(originalLineHeight * mult + add), mTextView.getLineHeight());
778 assertEquals(FastMath.round(originalLineHeight * mult + add), mTextView.getLineHeight());
782 assertEquals(FastMath.round(originalLineHeight * mult + add), mTextView.getLineHeight());
789 assertEquals(FastMath.round(expected), mTextView.getLineHeight());
794 assertEquals(FastMath.round(expected), mTextView.getLineHeight());
    [all...]

Completed in 585 milliseconds