Vector.dimension

Returns dimension (the number of coordinates) of the vector.

Arguments

None

Return values

dimension
as an integer number.

Complexity

Constant

Example

"sl/algebra" useFile v: (1.0 2.0 3.0) makeVector; v.dimension print
Output:
3