format "_" in names,
format code a bit
This commit is contained in:
parent
06935dace4
commit
39a4b54d30
50 changed files with 1817 additions and 1862 deletions
12
matrix4.cpp
12
matrix4.cpp
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue