Platforms to show: All Mac Windows Linux Cross-Platform

Back to CIVectorMBS class.

CIVectorMBS.vectorWithCGAffineTransform(t as CGAffineTransformMBS) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns a vector that is initialized with values provided by a CGAffineTransform.
Example
dim p as new CGAffineTransformMBS
dim v as CIVectorMBS = CIVectorMBS.vectorWithCGAffineTransform(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)

t: A transform.
Returns a vector initialized with the specified values.

The six values that comprise the affine transform fill the first six positions of the resulting CIVector object.

CIVectorMBS.vectorWithCGPoint(p as CGPointMBS) as CIVectorMBS

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

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

p: A point.
A vector initialized with the specified values.

The CGPoint's X and Y values are stored in the vector's X and Y properties.

CIVectorMBS.vectorWithCGRect(r as CGRectMBS) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates and returns a vector that is initialized with values provided by a CGRect.
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)

r: A rect.

Returns a vector initialized with the specified values.
The CGRect's X, Y, height and width values are stored in the vector's X, Y, Z and W properties.

CIVectorMBS.vectorWithString(s as string) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on content of the string.

CIVectorMBS.vectorWithValues(values() as Double) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on the given values.

See also:

CIVectorMBS.vectorWithValues(values() as single) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 16.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on the given values.

See also:

CIVectorMBS.vectorWithX(x as Double) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on one value.

CIVectorMBS.vectorWithXY(x as Double, y as Double) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on two values.

CIVectorMBS.vectorWithXYZ(x as Double, y as Double, z as Double) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on three values.

Some examples using this method:

CIVectorMBS.vectorWithXYZW(x as Double, y as Double, z as Double, w as Double) as CIVectorMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreImage MBS MacCI Plugin 12.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates a new vector based on 4 values.

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


The biggest plugin in space...