JumpyNET
Centurion
- Joined
- Apr 4, 2005
- Messages
- 196
Hey guys!
I do not have the correct words to look for a solution. So I'll try to explain what I want. Is it possible to achieve something like this:
Angle would be a custom class or type or whatever is the right word/solution and inside that "class" definition would be defined that these types can be added(+) and Angle is allways between [0...Math.Pi*2[.
I do not have the correct words to look for a solution. So I'll try to explain what I want. Is it possible to achieve something like this:
Visual Basic:
Dim angle1 as Angle = Math.Pi*3 '=Math.Pi
Dim angle2 as Angle = Math.Pi*3/2
Dim angle3 as Angle = angle1 + angle2
debug.print(angle3) 'Would print 1.57 which is Math.Pi/2
Angle would be a custom class or type or whatever is the right word/solution and inside that "class" definition would be defined that these types can be added(+) and Angle is allways between [0...Math.Pi*2[.