Searched refs:relativeScale (Results 1 – 1 of 1) sorted by relevance
282 float relativeScale = targetScale / currentScale; in scale() local284 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()285 (1 - relativeScale); in scale()286 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()287 (1 - relativeScale); in scale()293 float relativeScale = targetScale / currentScale; in scale() local294 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; in scale()295 float heightBuffer = (getHeight() - mTranslateRect.height()) / relativeScale; in scale()