Home | History | Annotate | Download | only in controllersample

Lines Matching refs:Math

435                 float direction = mRandom.nextFloat() * (float) Math.PI * 2;
438 float velocityX = (float) Math.cos(direction) * speed;
439 float velocityY = (float) Math.sin(direction) * speed;
451 return (float) Math.hypot(x, y);
477 if (Math.abs(value) > flat) {
531 && distanceTo(other) <= Math.max(mSize, other.mSize)
532 + Math.min(mSize, other.mSize) * 0.5f;
640 private static final float CORNER_ANGLE = (float) Math.PI * 2 / 3;
641 private static final float TO_DEGREES = (float) (180.0 / Math.PI);
681 mPath.lineTo((float) Math.cos(-CORNER_ANGLE) * mSize,
682 (float) Math.sin(-CORNER_ANGLE) * mSize);
684 mPath.lineTo((float) Math.cos(CORNER_ANGLE) * mSize,
685 (float) Math.sin(CORNER_ANGLE) * mSize);
923 mHeadingAngle = (float) Math.atan2(mHeadingY, mHeadingX);
936 return (float) Math.cos(mHeadingAngle) * radius;
940 return (float) Math.sin(mHeadingAngle) * radius;