BRL.vec, BRL.matrix

BlitzMax Forums/BlitzMax Programming/BRL.vec, BRL.matrix

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.

I found out you can't have the same method names for each Type this way
Yes you can, post the code, cos you've made a mistake somewhere.
TVec3 IS a TVec2 so isnt a different type
Type TVec2

   Field x:Float, y:Float

	Function Create:tVec2()
		Return New tvec2
	EndFunction
	
End Type

Type TVec3 Extends TVec2

   Field z:Float

	Function Create:tVec3()
		Return New tvec3
	EndFunction

End Type

v2:TVec2 = TVec2.Create()
v3:TVec3 = TVec3.Create()
This works. What have you done differently