CGFloat Extensions

Omar Albeik edited this page Dec 9, 2016 · 3 revisions

CGFloat extensions

Properties:

Name Description
abs Absolute of CGFloat value.
ceil Ceil of CGFloat value.
degreesToRadians Radian value of degree input.
floor Floor of CGFloat value.
radiansToDegrees Degree value of radian input.

Methods:

Name Return Description
randomBetween(min: CGFloat, max: CGFloat) CGFloat Random CGFloat between two CGFloat values.