The solution was simple and clean enought!
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)
Function Location:Vector(X#,Y#) Local V:Vector V=Vector.Create(X#,Y#) Return V End Function This is how I use it: Position:Vector Explosion( Position ) or if I want to use X,Y directly Explosion( Location(7,23) )
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)