The iOS framework that grows only as fast as its documentation
CGFloat Methods

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)
 

Overview

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.

Function Documentation

NICGFloatAbs

fabs()/fabsf() sized for CGFloat

CG_INLINE CGFloat NICGFloatAbs:(CGFloat)x;

NICGFloatFloor

floor()/floorf() sized for CGFloat

CG_INLINE CGFloat NICGFloatFloor:(CGFloat)x;

NICGFloatCeil

ceil()/ceilf() sized for CGFloat

CG_INLINE CGFloat NICGFloatCeil:(CGFloat)x;

NICGFloatRound

round()/roundf() sized for CGFloat

CG_INLINE CGFloat NICGFloatRound:(CGFloat)x;

NICGFloatSqRt

sqrt()/sqrtf() sized for CGFloat

CG_INLINE CGFloat NICGFloatSqRt:(CGFloat)x;

NICGFloatCopySign

copysign()/copysignf() sized for CGFloat

CG_INLINE CGFloat NICGFloatCopySign;

NICGFloatPow

pow()/powf() sized for CGFloat

CG_INLINE CGFloat NICGFloatPow;

NICGFloatCos

cos()/cosf() sized for CGFloat

CG_INLINE CGFloat NICGFloatCos:(CGFloat)x;