Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/ui/motion/
DLinearScale.java24 private final float mDomainB; field in LinearScale
32 mDomainB = domainB; 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()
74 return new LinearScale(mRangeA, mRangeB, mDomainA, mDomainB); in inverse()
[all …]