# NSAffineTransform.m

ovidiu@net-community.com
richard@brainstorm.co.uk

This class provides a way to perform affine transforms. It provides a matrix for transforming from one coordinate system to another.

1996,1999 Free Software Foundation, Inc.
Software documentation for the NSAffineTransform class
AppKit/NSAffineTransform.h
NSCopying
NSCoding
Description forthcoming.
Description forthcoming.
transform
Return an autoreleased instance of this class.
appendTransform:
aTransform
Appends the transform matrix to the receiver. This is done by performing a matrix multiplication of the receiver with aTransform so that aTransform is the first transform applied to the user coordinate. The new matrix then replaces the receiver's matrix.
concat
Concatenates the receiver's matrix with the one in the current graphics context.
initWithTransform:
aTransform
Initialize the receiever's instance with the instance represented by aTransform.
invert
Calculates the inverse of the receiver's matrix and replaces the receiever's matrix with it.
prependTransform:
aTransform
Prepends the transform matrix to the receiver. This is done by performing a matrix multiplication of the receiver with aTransform so that aTransform is the last transform applied to the user coordinate. The new matrix then replaces the receiver's matrix.
rotateByDegrees:
angle
Applies the rotation specified by angle in degrees. Points transformed with the transformation matrix of the receiver are rotated counter-clockwise by the number of degrees specified by angle.
rotateByRadians:
angleRad
Applies the rotation specified by angle in radians. Points transformed with the transformation matrix of the receiver are rotated counter-clockwise by the number of radians specified by angle.
scaleBy:
scale
Scales the transformation matrix of the reciever by the factor specified by scale.
scaleXBy:
scaleX
yBy:
scaleY
Scales the X axis of the receiver's transformation matrix by scaleX and the Y axis of the transformation matrix by scaleY.
set
Get the currently active graphics context's transformation matrix and set it into the receiver.
setTransformStruct:
val

Sets the structure which represents the matrix of the reciever. The struct is of the form:

{m11, m12, m21, m22, tX, tY}

transformBezierPath:
aPath

Applies the receiver's transformation matrix to each point in the bezier path, then returns the result. The original bezier path is not modified.

transformPoint:
aPoint
Transforms a single point based on the transformation matrix. Returns the resulting point.
transformSize:
aSize
Transforms the NSSize represented by aSize using the reciever's transformation matrix. Returns the resulting NSSize.
transformStruct

Returns the `NSAffineTransformStruct` structure which represents the matrix of the reciever. The struct is of the form:

{m11, m12, m21, m22, tX, tY}

translateXBy:
tranX
yBy:
tranY
Applies the translation specified by tranX and tranY to the receiver's matrix. Points transformed by the reciever's matrix after this operation will be shifted in position based on the specified translation.
Software documentation for the NSAffineTransform(GNUstep) category
AppKit/NSAffineTransform.h
Description forthcoming.
boundingRectFor:
rect
result:
newRect
Description forthcoming.
concatenateWith:
anotherMatrix
Description forthcoming.
concatenateWithMatrix:
anotherMatrix
Description forthcoming.
deltaPointInMatrixSpace:
point
Description forthcoming.
getMatrix:
replace
Description forthcoming.
inverse
Description forthcoming.
isRotated
Description forthcoming.
makeIdentityMatrix
Description forthcoming.
pointInMatrixSpace:
point
Description forthcoming.
rectInMatrixSpace:
rect
Description forthcoming.
rotationAngle
Description forthcoming.
scaleTo:
sx
:
sy
Description forthcoming.
setFrameOrigin:
point
Description forthcoming.
setFrameRotation:
angle
Description forthcoming.
setMatrix:
replace
Description forthcoming.
sizeInMatrixSpace:
size
Description forthcoming.
takeMatrixFromTransform:
aTransform
Description forthcoming.
translateToPoint:
point
Description forthcoming.