mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
Refactoring
This commit is contained in:
parent
566bce1a9d
commit
148d0a95e7
2 changed files with 8 additions and 4 deletions
|
|
@ -25,11 +25,15 @@ extension CGFloat {
|
|||
}
|
||||
|
||||
func isInRangeOrEqual(_ from: CGFloat, _ to: CGFloat) -> Bool {
|
||||
from <= self && self <= to
|
||||
let from = Float(from)
|
||||
let to = Float(to)
|
||||
return from <= Float(self) && Float(self) <= to
|
||||
}
|
||||
|
||||
func isInRange(_ from: CGFloat, _ to: CGFloat) -> Bool {
|
||||
from < self && self < to
|
||||
let from = Float(from)
|
||||
let to = Float(to)
|
||||
return from < Float(self) && Float(self) < to
|
||||
}
|
||||
|
||||
func cubicBezierInterpolate(_ P0: CGPoint, _ P1: CGPoint, _ P2: CGPoint, _ P3: CGPoint) -> CGFloat {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue