format "_" in names,

format code a bit
This commit is contained in:
Pawel Kolodziejski 2004-12-09 23:55:43 +00:00
parent 06935dace4
commit 39a4b54d30
50 changed files with 1817 additions and 1862 deletions

View file

@ -17,18 +17,16 @@
#include "matrix4.h"
Matrix4::Matrix4( void ) {
pos_.set(0.f, 0.f, 0.f);
rot_.setAsIdentity();
Matrix4::Matrix4() {
_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;
_rot.transform(&v);
_pos += v;
}