Changed IsZero to use epsilon, removed use epsilon comment, and removed virtual destructor, which I don't know why I added that.
This commit is contained in:
parent
bf29fa91e7
commit
a4d794bac7
1 changed files with 1 additions and 5 deletions
|
@ -24,9 +24,6 @@
|
||||||
TVector3( void );
|
TVector3( void );
|
||||||
TVector3( BaseType X, BaseType Y, BaseType Z );
|
TVector3( BaseType X, BaseType Y, BaseType Z );
|
||||||
|
|
||||||
virtual ~TVector3( void ) { }
|
|
||||||
|
|
||||||
// TODO: Implement and use epsilon comparison
|
|
||||||
bool operator==( const TVector3& ) const;
|
bool operator==( const TVector3& ) const;
|
||||||
bool operator!=( const TVector3& ) const;
|
bool operator!=( const TVector3& ) const;
|
||||||
|
|
||||||
|
@ -182,8 +179,7 @@
|
||||||
template< typename BaseType >
|
template< typename BaseType >
|
||||||
inline bool TVector3< BaseType >::IsZero( void ) const
|
inline bool TVector3< BaseType >::IsZero( void ) const
|
||||||
{
|
{
|
||||||
// TODO: Use epsilon
|
return cmpf(x, 0) == 0 && cmpf(y, 0) == 0 && cmpf(z, 0) == 0;
|
||||||
return x == 0 && y == 0 && z == 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template< typename BaseType >
|
template< typename BaseType >
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue