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.

like you have above, it still would have been two different functions BUT they would have the same name.

Could have looked like this (psuedocode)

create(x,y)
localx = x
localy = y
end function

create(vectorthing)
localx = vectorthing.x
localy = vectorthing.y
end function

If you called the function with x and y it would run the first version, if you called it with a vector it would run the second version.