Whoops, do need a default constructor since I provide another constructor. Also fixed Vec3 init, since I renamed the vars x,y,z to be lowercase. Don't want the user to have to use shift everytime they access a vec3, seems silly.

This commit is contained in:
Brian 2014-02-20 20:19:49 -07:00
parent 747fc8a5cd
commit 4fd8dfb9f1
2 changed files with 31 additions and 9 deletions

View file

@ -20,7 +20,8 @@
BaseType x, y, z;
TVector3( BaseType x, BaseType y, BaseType z );
TVector3( void );
TVector3( BaseType X, BaseType Y, BaseType Z );
virtual ~TVector3( void ) { }
@ -54,10 +55,15 @@
template< typename BaseType >
inline TVector3< BaseType >::TVector3( BaseType x, BaseType y, BaseType z )
: this->x( x )
, this->y( y )
, this->z( z )
inline TVector3< BaseType >::TVector3( void )
{
}
template< typename BaseType >
inline TVector3< BaseType >::TVector3( BaseType X, BaseType Y, BaseType Z )
: x( X )
, y( Y )
, z( Z )
{
}