added SetTranslation and operator constr Matrix4f in Transform
This commit is contained in:
parent
9fdefa18fa
commit
7f39d77318
@ -292,6 +292,8 @@ namespace hgl
|
||||
return matrix;
|
||||
}
|
||||
|
||||
operator const Matrix4f &(){return GetMatrix();}
|
||||
|
||||
const Matrix4f &GetInverseMatrix()
|
||||
{
|
||||
UpdateMatrix();
|
||||
@ -305,6 +307,14 @@ namespace hgl
|
||||
const Vector3f &GetRotationAxis ()const{return rotation_axis;}
|
||||
const float GetRotateAngle ()const{return rotate_angle;}
|
||||
|
||||
void SetTranslation(const float x,const float y,const float z)
|
||||
{
|
||||
translation_vector.x=x;
|
||||
translation_vector.y=y;
|
||||
translation_vector.z=z;
|
||||
matrix_dirty=true;
|
||||
}
|
||||
|
||||
void SetTranslation(const Vector3f &v)
|
||||
{
|
||||
translation_vector=v;
|
||||
|
Loading…
x
Reference in New Issue
Block a user