makeVector (Vector)

Creates a vector from a builtin-list or any enumerable.

Arguments

enumerable
with the values for vector coordinates.

Return values

Resulting

vector
(see Vector).

Complexity

O(dimension)

Example

"sl/algebra" useFile "sl/linkedList" useFile l: (1.0 3.0 2.0) makeList; v1: l makeVector; v2: (4.0 -13.0 8.0) makeVector; v1.makeRange [print "," print] each LF print v2.makeRange [print "," print] each
Output:
1.000000,3.000000,2.000000, 4.000000,-13.000000,8.000000,