Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 622 Bytes
* CoreGraphicsHelper.h
* PSFoundation
* Created by Matthias Tretter on 16.02.11.
* Copyright 2011 @myell0w. All rights reserved.
* Taken from
// returns a matrix that rotates and translates at one time
#define CGAffineTransformMakeRotateTranslate(angle, dx, dy) CGAffineTransformMake(cosf(angle), sinf(angle), -sinf(angle), cosf(angle), dx, dy)
// returns a matrix that scales and translates at one time
#define CGAffineTransformMakeScaleTranslate(sx, sy, dx, dy) CGAffineTransformMake(sx, 0.f, 0.f, sy, dx, dy)