Home | History | Annotate | Download | only in views

Lines Matching defs:Math

204             mLevelCount = Math.max(0, Utils.ceilLog2(
208 int maxDim = Math.max(mImageWidth, mImageHeight);
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale);
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale);
284 mOffsetX = Math.round(mViewWidth / 2f - mCenterX * mScale);
285 mOffsetY = Math.round(mViewHeight / 2f - mCenterY * mScale);
288 fromLevel = Math.max(0, Math.min(fromLevel, mLevelCount - 2));
289 endLevel = Math.min(fromLevel + 2, mLevelCount);
362 double radians = Math.toRadians(-rotation);
366 double cos = Math.cos(radians);
367 double sin = Math.sin(radians);
368 int width = (int) Math.ceil(Math.max(
369 Math.abs(cos * w - sin * h), Math.abs(cos * w + sin * h)));
370 int height = (int) Math.ceil(Math.max(
371 Math.abs(sin * w + cos * h), Math.abs(sin * w - cos * h)));
373 int left = (int) Math.floor(cX - width / (2f * scale));
374 int top = (int) Math.floor(cY - height / (2f * scale));
375 int right = (int) Math.ceil(left + width / scale);
376 int bottom = (int) Math.ceil(top + height / scale);
380 left = Math.max(0, size * (left / size));
381 top = Math.max(0, size * (top / size));
382 right = Math.min(mImageWidth, right);
383 bottom = Math.min(mImageHeight, bottom);
451 Math.round(mImageWidth * mScale),
452 Math.round(mImageHeight * mScale));
705 setSize(Math.min(mTileSize, rightEdge), Math.min(mTileSize, bottomEdge));