Working with Vectors

BlitzMax Forums/BlitzMax Programming/Working with Vectors

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Looks nice I think, it's easy too see what's going on. Am I right in that the garbage collector will take care of this temp vector from my Location-function? (I don't put the vectors in a list)


ooh good point. Now THERE is a concrete advantage of Garbage collection. In B3D you couldn't just create types instances like that without having to worry about clearing them up.

So for something like this you just need a Vectorise:Vector(X,Y) function which simply returns a new temp vector.