ソースを参照

fixed Mat4.rotate argument type

Alexander Rose 6 年 前
コミット
5f51f41e0e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/mol-math/linear-algebra/3d/mat4.ts

+ 1 - 1
src/mol-math/linear-algebra/3d/mat4.ts

@@ -446,7 +446,7 @@ namespace Mat4 {
         return out
     }
 
-    export function rotate(out: Mat4, a: Mat4, rad: number, axis: Mat4) {
+    export function rotate(out: Mat4, a: Mat4, rad: number, axis: Vec3) {
         let x = axis[0], y = axis[1], z = axis[2],
             len = Math.sqrt(x * x + y * y + z * z),
             s, c, t,