Platforms to show: All Mac Windows Linux Cross-Platform

Back to CIVectorMBS class.

CIVectorMBS.CGAffineTransformValue as CGAffineTransformMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the values stored in the CIVector object as an affine transform.
Example
dim p as new CGAffineTransformMBS
dim v as new CIVectorMBS(p)
dim x as CGAffineTransformMBS = v.CGAffineTransformValue
MsgBox str(x.A)+" "+str(x.B)+" "+str(x.C)+" "+str(x.D)+" "+str(x.TX)+" "+str(x.TY)

The first six values in the vector become the values that comprise the affine transform.
Available in OS X v10.9 and later.

CIVectorMBS.CGPointValue as CGPointMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the values stored in the CIVector object as a point.
Example
dim p as new CGPointMBS(10, 20)
dim v as CIVectorMBS = CIVectorMBS.vectorWithCGPoint(p)

dim x as CGPointMBS = v.CGPointValue
MsgBox str(x.x)+" "+str(x.y)

The vector's X and Y property values become the CGPoint's X and Y values.
Available in OS X v10.9 and later.

CIVectorMBS.CGRectValue as CGRectMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the values stored in the CIVector object as an rect.
Example
dim p as new CGRectMBS(10, 20, 30, 40)
dim v as CIVectorMBS = CIVectorMBS.vectorWithCGRect(p)

dim x as CGRectMBS = v.CGRectValue
MsgBox str(x.Origin.X)+" "+str(x.Origin.y)+" "+str(x.Size.Width)+" "+str(x.Size.Height)

The vector's X, Y, Z and W property values become the CGRect's X, Y, height and width values.
Available in OS X v10.9 and later.

CIVectorMBS.Constructor(p as CGPointMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a vector that is initialized with values provided by a CGPoint.
Example
dim p as new CGPointMBS(10, 20)
dim v as new CIVectorMBS(p)

MsgBox str(v.x)+" "+str(v.y)

The CGPoint's X and Y values are stored in the vector's X and Y properties.
Available in OS X v10.9 and later.

See also:

CIVectorMBS.Constructor(r as CGRectMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a vector that is initialized with values provided by a CGRect.
Example
dim p as new CGRectMBS(10, 20, 30, 40)
dim v as new CIVectorMBS(p)
dim x as CGRectMBS = v.CGRectValue
MsgBox str(x.Origin.X)+" "+str(x.Origin.y)+" "+str(x.Size.Width)+" "+str(x.Size.Height)

The CGRect structure's X, Y, height and width values are stored in the vector's X, Y, Z and W properties.
Available in OS X v10.9 and later.

See also:

CIVectorMBS.Constructor(t as CGAffineTransformMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes a vector that is initialized with values provided by a CGAffineTransform.
Example
dim p as new CGAffineTransformMBS
dim v as new CIVectorMBS(p)
dim x as CGAffineTransformMBS = v.CGAffineTransformValue
MsgBox str(x.A)+" "+str(x.B)+" "+str(x.C)+" "+str(x.D)+" "+str(x.TX)+" "+str(x.TY)

The six values that comprise the affine transform fill the first six positions of the resulting CIVector object.
Available in OS X v10.9 and later.

See also:

CIVectorMBS.copy as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a copy of the vector object.

CIVectorMBS.Value(index as Integer) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreImage MBS MacCI Plugin 7.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The value with the given index.

Index is zero based.

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


The biggest plugin in space...