scummvm/matrix4.cpp
2003-10-01 12:20:27 +00:00

20 lines
231 B
C++

#include "matrix4.h"
Matrix4::Matrix4( void )
{
pos_.set( 0.f, 0.f, 0.f );
rot_.setAsIdentity();
}
void Matrix4::translate( float x, float y, float z )
{
Vector3d v;
v.set( x, y, z );
rot_.transform( &v );
pos_ += v;
}