NimbusKit
1.2.1 - Fork Nimbus on Github - Visit the Nimbus Wiki
The iOS framework that grows only as fast as its documentation
|
Functions | |
CG_INLINE CGFloat | NICGFloatAbs (CGFloat x) |
CG_INLINE CGFloat | NICGFloatFloor (CGFloat x) |
CG_INLINE CGFloat | NICGFloatCeil (CGFloat x) |
CG_INLINE CGFloat | NICGFloatRound (CGFloat x) |
CG_INLINE CGFloat | NICGFloatSqRt (CGFloat x) |
CG_INLINE CGFloat | NICGFloatCopySign (CGFloat x, CGFloat y) |
CG_INLINE CGFloat | NICGFloatPow (CGFloat x, CGFloat y) |
CG_INLINE CGFloat | NICGFloatCos (CGFloat x) |
For manipulating CGFloat.
These methods provide math functions on CGFloats. They could easily be replaced with <tgmath.h> but that is currently (Xcode 5.0) incompatible with CLANG_ENABLE_MODULES (on by default for many projects/targets). We'll use CG_INLINE because this really should be completely inline.
fabs()/fabsf() sized for CGFloat
floor()/floorf() sized for CGFloat
ceil()/ceilf() sized for CGFloat
round()/roundf() sized for CGFloat
sqrt()/sqrtf() sized for CGFloat
copysign()/copysignf() sized for CGFloat
pow()/powf() sized for CGFloat
cos()/cosf() sized for CGFloat