Vector


super: Object

A container for coordinate values, direction vectors, matrices, and other non-scalar values, typically used for parameters in ImageFilter objects.

Events

  • Load() This event is called when the object becames available in the current runtime system.

  • Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).

Properties

  • var count: Int The number of items in the vector. (read-only)

  • var X: Float The value located in the first position in the vector. (read-only)

  • var Y: Float The value located in the second position in the vector. (read-only)

  • var Z: Float The value located in the third position in the vector. (read-only)

  • var W: Float The value located in the fourth position in the vector. (read-only)

  • var pointValue: Point The values in the vector as a Point object. (read-only)

  • var rectValue: Rect The values in the vector as a Rect object. (read-only)

  • var objectName: String The name of the object.

Constructors

  • func Vector(values: List) Initializes a vector with the provided values.

Methods

  • func valueAtIndex(index: Int): Float Returns a value from a specific position in the vector.