Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGAffineTransformMBS class.

CGAffineTransformMBS.Binary as MemoryBlock

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 3.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the binary data of the object for toolbox calls.

CGAffineTransformMBS.Concat(t as CGAffineTransformMBS) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 3.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Concatenate 't2' to 't1' and returne the result: t' = t1 * t2

CGAffineTransformMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
This constructor creates the identity transform: [ 1 0 0 1 0 0 ].

See also:

CGAffineTransformMBS.Constructor(a as double, b as double, c as double, d as double, tx as double = 0.0, ty as double = 0.0)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates the transformation with the given values.

See also:

CGAffineTransformMBS.Constructor(p as Ptr)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new instance using data at the pointer.

Make sure the pointer is valid and has the right data and size.

See also:

CGAffineTransformMBS.Constructor(transform as CGAffineTransformMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a matrix object with copying the values.
Example
dim m as new CGAffineTransformMBS(1,2,3,4,5,6)
dim n as new CGAffineTransformMBS(m)
MsgBox n

See also:

CGAffineTransformMBS.EqualToTransform(t as CGAffineTransformMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Checks whether two affine transforms are equal.

Returns true if t1 and t2 are equal, false otherwise.
Available in Mac OS X v10.4 and later.

CGAffineTransformMBS.Invert as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 3.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Invert 't' and return the result. If 't' has zero determinant, then 't' is returned unchanged.

CGAffineTransformMBS.IsIdentity as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Checks whether an affine transform is the identity transform.

Returns true if t is the identity transform, false otherwise.
Available in Mac OS X v10.4 and later.

CGAffineTransformMBS.Operator_Convert as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns string value.

CGAffineTransformMBS.Operator_Multiply(other as CGAffineTransformMBS) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Multiplies both matrix where self is on the left side.

CGAffineTransformMBS.Operator_MultiplyRight(other as CGAffineTransformMBS) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 20.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Multiplies both matrix where self is on the right side.

CGAffineTransformMBS.Rotate(angle as Double) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 3.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Rotate 't' by 'angle' radians and return the result: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t

CGAffineTransformMBS.Scale(sx as Double, sy as Double) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 3.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Scale 't' by '(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * t

CGAffineTransformMBS.Translate(tx as Double, ty as Double) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreGraphics MBS MacCG Plugin 3.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Translate 't' by '(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * t
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.


The biggest plugin in space...