Searched refs:relativeScale (Results 1 – 1 of 1) sorted by relevance
284 float relativeScale = targetScale / currentScale; in scale() local286 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()287 (1 - relativeScale); in scale()288 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()289 (1 - relativeScale); in scale()295 float relativeScale = targetScale / currentScale; in scale() local296 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; in scale()297 float heightBuffer = (getHeight() - mTranslateRect.height()) / relativeScale; in scale()