瀏覽代碼

Merge pull request #345 from JellyPixelGames/fix-typos

Fix typo in raymath.h
pull/346/head
Ray 7 年之前
committed by GitHub
父節點
當前提交
f78747130c
共有 1 個檔案被更改,包括 10 行新增10 行删除
  1. +10
    -10
      src/raymath.h

+ 10
- 10
src/raymath.h 查看文件

@ -1218,19 +1218,19 @@ RMDEF Matrix QuaternionToMatrix(Quaternion q)
float z2 = z + z;
float length = QuaternionLength(q);
float lenghtSquared = length*length;
float lengthSquared = length*length;
float xx = x*x2/lenghtSquared;
float xy = x*y2/lenghtSquared;
float xz = x*z2/lenghtSquared;
float xx = x*x2/lengthSquared;
float xy = x*y2/lengthSquared;
float xz = x*z2/lengthSquared;
float yy = y*y2/lenghtSquared;
float yz = y*z2/lenghtSquared;
float zz = z*z2/lenghtSquared;
float yy = y*y2/lengthSquared;
float yz = y*z2/lengthSquared;
float zz = z*z2/lengthSquared;
float wx = w*x2/lenghtSquared;
float wy = w*y2/lenghtSquared;
float wz = w*z2/lenghtSquared;
float wx = w*x2/lengthSquared;
float wy = w*y2/lengthSquared;
float wz = w*z2/lengthSquared;
result.m0 = 1.0f - (yy + zz);
result.m1 = xy - wz;

||||||
x
 
000:0
Loading…
取消
儲存