diff --git a/js/Vector3.ts b/js/Vector3.ts index a5fe4ce..9a67a7a 100644 --- a/js/Vector3.ts +++ b/js/Vector3.ts @@ -129,8 +129,7 @@ export default class Vector3 implements TPoolable { * is the input vector (normalized). */ public angleBetween( v: Vector3 ): number { - // @ts-expect-error TODO: import with circular protection - return Math.acos( dot.clamp( this.normalized().dot( v.normalized() ), -1, 1 ) ); + return Math.acos( Utils.clamp( this.normalized().dot( v.normalized() ), -1, 1 ) ); } /** @@ -630,7 +629,6 @@ export default class Vector3 implements TPoolable { * @returns Spherical linear interpolation between the start and end */ public static slerp( start: Vector3, end: Vector3, ratio: number ): Vector3 { - // NOTE: we can't create a require() loop here // @ts-expect-error TODO: import with circular protection return dot.Quaternion.slerp( new dot.Quaternion(), dot.Quaternion.getRotationQuaternion( start, end ), ratio ).timesVector3( start ); }