Platforms to show: All Mac Windows Linux Cross-Platform
CGAffineTransformMBS.Binary as MemoryBlock
Function:
Returns the binary data of the object for toolbox calls.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 3.4 | Yes | No | No | Yes, macOS only | No |
CGAffineTransformMBS.Concat(t as CGAffineTransformMBS) as CGAffineTransformMBS
Function:
Concatenate 't2' to 't1' and returne the result: t' = t1 * t2
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 3.4 | Yes | No | No | Yes, macOS only | No |
CGAffineTransformMBS.Constructor
Function:
This constructor creates the identity transform: [ 1 0 0 1 0 0 ].
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | Yes | No | No | Yes, macOS only | No |
See also:
CGAffineTransformMBS.Constructor(a as Double, b as Double, c as Double, d as Double, tx as Double, ty as Double)
Function:
Creates the transformation with the given values.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | Yes | No | No | Yes, macOS only | No |
See also:
CGAffineTransformMBS.Constructor(p as Ptr)
Function:
Creates a new instance using data at the pointer.
Notes: Make sure the pointer is valid and has the right data and size.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 17.1 | Yes | No | No | Yes, macOS only | No |
Notes: Make sure the pointer is valid and has the right data and size.
See also:
CGAffineTransformMBS.EqualToTransform(t as CGAffineTransformMBS) as boolean
Function:
Checks whether two affine transforms are equal.
Notes:
Returns true if t1 and t2 are equal, false otherwise.
Available in Mac OS X v10.4 and later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | Yes | No | No | Yes, macOS only | No |
Notes:
Returns true if t1 and t2 are equal, false otherwise.
Available in Mac OS X v10.4 and later.
CGAffineTransformMBS.Invert as CGAffineTransformMBS
Function:
Invert 't' and return the result. If 't' has zero determinant, then 't' is returned unchanged.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 3.4 | Yes | No | No | Yes, macOS only | No |
CGAffineTransformMBS.IsIdentity as boolean
Function:
Checks whether an affine transform is the identity transform.
Notes:
Returns true if t is the identity transform, false otherwise.
Available in Mac OS X v10.4 and later.
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 9.5 | Yes | No | No | Yes, macOS only | No |
Notes:
Returns true if t is the identity transform, false otherwise.
Available in Mac OS X v10.4 and later.
CGAffineTransformMBS.Rotate(angle as Double) as CGAffineTransformMBS
Function:
Rotate 't' by 'angle' radians and return the result: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 3.4 | Yes | No | No | Yes, macOS only | No |
CGAffineTransformMBS.Scale(sx as Double, sy as Double) as CGAffineTransformMBS
Function:
Scale 't' by '(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * t
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 3.4 | Yes | No | No | Yes, macOS only | No |
CGAffineTransformMBS.Translate(tx as Double, ty as Double) as CGAffineTransformMBS
Function:
Translate 't' by '(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * t
Example:
Type | Topic | Plugin | Version | macOS | Windows | Linux | Console & Web | iOS |
method | CoreGraphics | MBS MacCG Plugin | 3.4 | Yes | No | No | Yes, macOS only | No |
Example:
dim t as new CGAffineTransformMBS(1,0,0,1,1,1)
t=t.Translate(2,3)
MsgBox str(T.A)+" "+str(t.B)+" "+str(t.C)+" "+str(t.D)+" "+str(t.TX)+" "+str(t.TY)
// shows 1 0 0 1 3 4
The items on this page are in the following plugins: MBS MacCG Plugin.
Links
MBS Xojo Plugins