Lines Matching refs:mag
69 public float mag() { in mag() method in BouncyDroid.BouncyView.World.Vec
73 float k = 1/mag(); in norm()
247 float mag = springForce.mag(); in reset()
249 if (STICKY_FINGERS && mag < mBody.r*0.75) { in reset()
259 … mag = (float) Math.min(mag * SPRING_K, FORCE_MAX); // Hooke's law in reset()
261 springForce = springForce.norm().mul(mag); in reset()
289 if (mBody.v.mag() > MAX_SPEED) { in reset()
376 final float mag = (float) Math.hypot(vx, vy); in drawVector() local
380 mx.setSinCos(-vx/mag, vy/mag); in drawVector()
384 canvas.drawLine(0,0, 0, mag, pt); in drawVector()
385 canvas.drawLine(0, mag, -4, mag-4, pt); in drawVector()
386 canvas.drawLine(0, mag, 4, mag-4, pt); in drawVector()