Home
last modified time | relevance | path

Searched refs:mDomainA (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/ui/motion/
DLinearScale.java23 private final float mDomainA; field in LinearScale
31 mDomainA = domainA; in LinearScale()
37 float scale = (mRangeB - mRangeA) / (mDomainB - mDomainA); in LinearScale()
45 if (mDomainA > mDomainB) { in clamp()
46 return Math.max(mDomainB, Math.min(mDomainA, domainValue)); in clamp()
49 return Math.max(mDomainA, Math.min(mDomainB, domainValue)); in clamp()
56 if (mDomainA > mDomainB) { in isInDomain()
57 return domainValue <= mDomainA && domainValue >= mDomainB; in isInDomain()
59 return domainValue >= mDomainA && domainValue <= mDomainB; in isInDomain()
66 return mRangeA + (domainValue - mDomainA) * mScale; in scale()
[all …]