Пример #1
0
 public EDVector3 translate(EDVector3 vec) {
   float x = vec.x * this.mat[0] + vec.y * this.mat[1] + vec.z * this.mat[2] + this.mat[3];
   float y = vec.x * this.mat[4] + vec.y * this.mat[5] + vec.z * this.mat[6] + this.mat[7];
   float z = vec.x * this.mat[8] + vec.y * this.mat[9] + vec.z * this.mat[10] + this.mat[11];
   vec.x = x;
   vec.y = y;
   vec.z = z;
   return vec;
 }