Vectors

Can vectors grow? i know they can in matlab but in breve/steve?

i.e. if i wanted to build up a record of the positions that an agent moved to over time... so the vector would build u like this:

{x0, y0, z0}
{x0, y0, z0, x1, y1, z1}
{x0, y0, z0, x1, y1, z1, x2, y2, z2}

or would it be best to just use a list of vectors?

thanks
t

List of vectors.

Use the list of vectors.

+ variables:
pathpts(list).
pt(vector).
+ to iterate:
pt = self get-location.
push pt onto pathpts.

Vectors

cheers
t

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.