Platforms to show: All Mac Windows Linux Cross-Platform

Back to CGAffineTransformMBS class.

CGAffineTransformMBS.Identity as CGAffineTransformMBS

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

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Return the transform [ a b c d tx ty ].

CGAffineTransformMBS.MakeRotation(angle as Double) as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Return a transform which rotates by 'angle' radians: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ]

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Return a transform which scales by '(sx, sy)': t' = [ sx 0 0 sy 0 0 ]

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreGraphics MBS MacCG Plugin 9.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Return a transform which translates by '(tx, ty)': t' = [ 1 0 0 1 tx ty ]

Some examples using this method:

The items on this page are in the following plugins: MBS MacCG Plugin.


The biggest plugin in space...