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.

Ok here's the problem code:

Type TVec2

   Field x:Float, y:Float

	Function Create:tVec2()
		Return New tvec2
	EndFunction
	
	Method Set(x#, y#)
		self.x = x
		self.y = y
	End Method
	
End Type

Type TVec3 Extends TVec2

   Field z:Float

	Function Create:tVec3()
		Return New tvec3
	EndFunction
	
	Method Set(x#, y#, z#)
		self.x = x
		self.y = y
		self.z = z
	End Method

End Type

v2:TVec2 = TVec2.Create()
v3:TVec3 = TVec3.Create()