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:
parent
747fc8a5cd
commit
4fd8dfb9f1
2 changed files with 31 additions and 9 deletions
|
@ -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 )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue