mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Added method to quickly copy the matrix from one transform to another
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8610 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
000b7aa53a
commit
a2f769603a
1 changed files with 11 additions and 0 deletions
|
@ -607,5 +607,16 @@ static NSAffineTransformStruct identityTransform = {
|
|||
replace[5] = matrix.ty;
|
||||
}
|
||||
|
||||
- (void) getMatrixFromTransform: (NSAffineTransform *)other
|
||||
{
|
||||
matrix.m11 = other->matrix.m11;
|
||||
matrix.m12 = other->matrix.m12;
|
||||
matrix.m21 = other->matrix.m21;
|
||||
matrix.m22 = other->matrix.m22;
|
||||
matrix.tx = other->matrix.tx;
|
||||
matrix.ty = other->matrix.ty;
|
||||
}
|
||||
|
||||
|
||||
@end /* NSAffineTransform (GNUstep) */
|
||||
|
||||
|
|
Loading…
Reference in a new issue