Platforms to show: All Mac Windows Linux Cross-Platform

CGPointMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class CoreGraphics MBS MacCG Plugin 2.7 ✅ Yes ❌ No ❌ No ✅ Yes All
A class for a core graphics point.
Example
// create points, scale and rotate them
Var p As New CGPointMBS(10, 20)
Var scaled As CGPointMBS = p.multiply(2.0)

Var rotation As CGAffineTransformMBS = CGAffineTransformMBS.MakeRotation(3.14159265358979 / 2) // 90 degrees in radians
Var rotated As CGPointMBS = p.ApplyAffineTransform(rotation)

MessageBox "Scaled: " + scaled.x.ToString + ", " + scaled.y.ToString + EndOfLine + _
"Rotated: " + Format(rotated.x, "0.0") + ", " + Format(rotated.y, "0.0") + EndOfLine + _
"Equal to zero: " + p.Equal(CGPointMBS.Zero).ToString

This class has no subclasses.

Blog Entries

Release notes

Some useful global functions for this class:

Some methods using this class:

Some properties using this class:

Some examples using this class:

Some related classes:


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


CGPDFStringMBS   -   CGPSConverterMBS


The biggest plugin in space...