Skip to content

Commit

Permalink
remove redundant NOTE, #101
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Feb 22, 2023
1 parent 8e08c4b commit 7b12bc4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/Vector3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}

/**
Expand Down Expand Up @@ -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 );
}
Expand Down

0 comments on commit 7b12bc4

Please sign in to comment.