Class: CIVector
Overview
The CIVector class is used for coordinate values and direction vectors. You typically use a CIVector object to pass parameter values to Core Image filters. CIVector objects work in conjunction with other Core Image classes, such as CIFilter, CIContext, CIImage, and CIColor, to process images using the Core Image framework.
Class Method Summary (collapse)

+ vectorWithCGAffineTransform:
Creates and returns a vector that is initialized with values provided by a CGAffineTransform structure.

+ vectorWithCGPoint:
Creates and returns a vector that is initialized with values provided by a CGPoint structure.

+ vectorWithCGRect:
Creates and returns a vector that is initialized with values provided by a CGRect structure.

+ vectorWithString:
Creates and returns a vector that is initialized with values provided in a string representation.

+ vectorWithValues:count:
Creates and returns a vector that is initialized with the specified values.

+ vectorWithX:
Creates and returns a vector that is initialized with one value.

+ vectorWithX:Y:
Creates and returns a vector that is initialized with two values.

+ vectorWithX:Y:Z:
Creates and returns a vector that is initialized with three values.

+ vectorWithX:Y:Z:W:
Creates and returns a vector that is initialized with four values.
Instance Method Summary (collapse)

 CGAffineTransformValue
Returns the values stored in the CIVector object as an affine transform.

 CGPointValue
Returns the values stored in the CIVector object as a point.

 CGRectValue
Returns the values stored in the CIVector object as an rect.

 count
Returns the number of items in a vector.

 initWithCGAffineTransform:
Initializes a vector that is initialized with values provided by a CGAffineTransform structure.

 initWithCGPoint:
Initializes a vector that is initialized with values provided by a CGPoint structure.

 initWithCGRect:
Initializes a vector that is initialized with values provided by a CGRect structure.

 initWithString:
Initializes a vector with values provided in a string representation.

 initWithValues:count:
Initializes a vector with the provided values.

 initWithX:
Initializes the first position of a vector with the provided values.

 initWithX:Y:
Initializes the first two positions of a vector with the provided values.

 initWithX:Y:Z:
Initializes the first three positions of a vector with the provided values.

 initWithX:Y:Z:W:
Initializes four positions of a vector with the provided values.

 stringRepresentation
Returns a string representation for a vector.

 valueAtIndex:
Returns a value from a specific position in a vector.

 W
Returns the value located in the fourth position in a vector.

 X
Returns the value located in the first position in a vector.

 Y
Returns the value located in the second position in a vector.

 Z
Returns the value located in the third position in a vector.
Methods inherited from NSObject
#!, #!=, #!~, #, #==, #===, #=~, #Rational, #__callee__, #__method__, #__send__, #__type__, `, alloc, allocWithZone:, #autoContentAccessingProxy, autoload, autoload?, autorelease_pool, #awakeAfterUsingCoder:, binding, block_given?, caller, cancelPreviousPerformRequestsWithTarget:, cancelPreviousPerformRequestsWithTarget:selector:object:, catch, class, classFallbacksForKeyedArchiver, #classForCoder, #classForKeyedArchiver, classForKeyedUnarchiver, #clone, conformsToProtocol:, #copy, copyWithZone:, #dealloc, #define_singleton_method, description, display, #doesNotRecognizeSelector:, #dup, #enum_for, #eql?, #equal?, #extend, fail, #finalize, format, #forwardInvocation:, #forwardingTargetForSelector:, framework, #freeze, #frozen?, getpass, gets, global_variables, #init, initialize, #initialize_clone, #initialize_copy, #initialize_dup, #inspect, instanceMethodForSelector:, instanceMethodSignatureForSelector:, #instance_eval, #instance_exec, #instance_of?, #instance_variable_defined?, #instance_variable_get, #instance_variable_set, #instance_variables, instancesRespondToSelector:, isSubclassOfClass:, #is_a?, iterator?, #kind_of?, lambda, load, load_bridge_support_file, load_plist, local_variables, loop, #method, #methodForSelector:, #methodSignatureForSelector:, #methods, #mutableCopy, mutableCopyWithZone:, new, #nil?, open, p, #performSelector:onThread:withObject:waitUntilDone:, #performSelector:onThread:withObject:waitUntilDone:modes:, #performSelector:withObject:afterDelay:, #performSelector:withObject:afterDelay:inModes:, #performSelectorInBackground:withObject:, #performSelectorOnMainThread:withObject:waitUntilDone:, #performSelectorOnMainThread:withObject:waitUntilDone:modes:, print, printf, #private_methods, proc, #protected_methods, #public_method, #public_methods, #public_send, putc, puts, raise, rand, readline, readlines, #replacementObjectForCoder:, #replacementObjectForKeyedArchiver:, require, resolveClassMethod:, resolveInstanceMethod:, #respond_to?, #respond_to_missing?, select, #send, setVersion:, #singleton_methods, sprintf, srand, superclass, #taint, #tainted?, #tap, test, throw, #to_plist, #to_s, trace_var, trap, #trust, #untaint, untrace_var, #untrust, #untrusted?, version
Constructor Details
This class inherits a constructor from NSObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class NSObject
Class Method Details
+ (CIVector) vectorWithCGAffineTransform(t)
Creates and returns a vector that is initialized with values provided by a CGAffineTransform structure. The six values that comprise the affine transform fill the first six positions of the resulting CIVector object.
+ (CIVector) vectorWithCGPoint(p)
Creates and returns a vector that is initialized with values provided by a CGPoint structure. The CGPoint structure’s X and Y values are stored in the vector’s X and Y properties.
+ (CIVector) vectorWithCGRect(r)
+ (CIVector) vectorWithString(representation)
Creates and returns a vector that is initialized with values provided in a string representation. Some typical string representations for vectors are:@"[1.0 0.5 0.3]" which specifies a vec3 vector whose components are X = 1.0, Y = 0.5, and Z = 0.3@"[10.0 23.0] which specifies a vec2 vector show components are X = 10.0 and Y = 23.0
+ (CIVector) vectorWithValues(values, count:count)
Creates and returns a vector that is initialized with the specified values.
+ (CIVector) vectorWithX(x)
Creates and returns a vector that is initialized with one value.
+ (CIVector) vectorWithX(x, Y:y)
Creates and returns a vector that is initialized with two values.
+ (CIVector) vectorWithX(x, Y:y, Z:z)
Creates and returns a vector that is initialized with three values.
+ (CIVector) vectorWithX(x, Y:y, Z:z, W:w)
Creates and returns a vector that is initialized with four values.
Instance Method Details
 (CGAffineTransform) CGAffineTransformValue
Returns the values stored in the CIVector object as an affine transform. The first six values in the vector become the values that comprise the affine transform.
 (CGPoint) CGPointValue
Returns the values stored in the CIVector object as a point. The vector’s X and Y property values become the CGPoint structure’s X and Y values.
 (CGRect) CGRectValue
 (size_t) count
Returns the number of items in a vector.
 (Object) initWithCGAffineTransform(r)
Initializes a vector that is initialized with values provided by a CGAffineTransform structure. The six values that comprise the affine transform fill the first six positions of the resulting CIVector object.
 (Object) initWithCGPoint(p)
Initializes a vector that is initialized with values provided by a CGPoint structure. The CGPoint structure’s X and Y values are stored in the vector’s X and Y properties.
 (Object) initWithCGRect(r)
 (Object) initWithString(representation)
Initializes a vector with values provided in a string representation.
 (Object) initWithValues(values, count:count)
Initializes a vector with the provided values.
 (Object) initWithX(x)
Initializes the first position of a vector with the provided values.
 (Object) initWithX(x, Y:y)
Initializes the first two positions of a vector with the provided values.
 (Object) initWithX(x, Y:y, Z:z)
Initializes the first three positions of a vector with the provided values.
 (Object) initWithX(x, Y:y, Z:z, W:w)
Initializes four positions of a vector with the provided values.
 (String) stringRepresentation
Returns a string representation for a vector. You convert the string representation returned by this method to a vector by supplying it as a parameter to the vectorWithString: method.Some typical string representations for vectors are:@"[1.0 0.5 0.3]" which specifies a vec3 vector whose components are X = 1.0, Y = 0.5, and Z = 0.3@"[10.0 23.0]which specifies a vec2 vector show components are X = 10.0 and Y = 23.0
 (Float) valueAtIndex(index)
Returns a value from a specific position in a vector. The numbering of elements in a vector begins with zero.
 (Float) W
Returns the value located in the fourth position in a vector.
 (Float) X
Returns the value located in the first position in a vector.
 (Float) Y
Returns the value located in the second position in a vector.
 (Float) Z
Returns the value located in the third position in a vector.