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:
Nicola Pero 2001-01-16 12:30:02 +00:00
parent 000b7aa53a
commit a2f769603a

View file

@ -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) */