void Matrix4::toIdentity() {
    toZero();
    values[0]  = 1.0f;
    values[5]  = 1.0f;
    values[10] = 1.0f;
    values[15] = 1.0f;
}
示例#2
0
		//Turns matrix into an indentity matrix
		void toIdentity() {

			toZero();
			values[0] = 1.0f;
			values[5] = 1.0f;
			values[10] = 1.0f;
			values[15] = 1.0f;
		}
Matrix3::Matrix3(const Matrix4 &m4) {
	toZero();
	values[0] = m4.values[0];
	values[1] = m4.values[1];
	values[2] = m4.values[2];
	values[3] = m4.values[4];
	values[4] = m4.values[5];
	values[5] = m4.values[6];
	values[6] = m4.values[8];
	values[7] = m4.values[9];
	values[8] = m4.values[10];
}
示例#4
0
文件: Vector.hpp 项目: rhvall/CarDemo
 Vector2T(void)
 {
     toZero();
 }
示例#5
0
文件: Vector.hpp 项目: rhvall/CarDemo
 Vector3T(void)
 {
     toZero();
 }
void Matrix3::toIdentity() {
	toZero();
	values[0] = 1.0f;
	values[4] = 1.0f;
	values[8] = 1.0f;
}
示例#7
0
		mat4(void){
			toZero();
		};