Adding/Subtracting Types

BlitzMax Forums/BlitzMax Programming/Adding/Subtracting Types

No there is no overloading of functions or operators, so this is the only way to do it.

Although you have an "error" or unneeded part there:

Method Divide:TVector2(Vector2:TVector2)
    Temp:TVector2 = new TVector2
    Temp.X = Self.X / Vector2.X
    Temp.Y = Self.Y / Vector2.Y
    Return Temp
End Method