瀏覽代碼

Euler: Clean up

Mr.doob 4 年之前
父節點
當前提交
a7b8ed26d0
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/math/Euler.js

+ 1 - 3
src/math/Euler.js

@@ -1,7 +1,7 @@
 import { Quaternion } from './Quaternion.js';
 import { Vector3 } from './Vector3.js';
 import { Matrix4 } from './Matrix4.js';
-import * as MathUtils from './MathUtils.js';
+import { clamp } from './MathUtils.js';
 
 const _matrix = /*@__PURE__*/ new Matrix4();
 const _quaternion = /*@__PURE__*/ new Quaternion();
@@ -103,8 +103,6 @@ class Euler {
 
 	setFromRotationMatrix( m, order, update ) {
 
-		const clamp = MathUtils.clamp;
-
 		// assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
 
 		const te = m.elements;