@lakuna/umath 1.3.4 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +7 -9
- package/dist/algorithms/combinations.d.ts +7 -0
- package/dist/algorithms/combinations.d.ts.map +1 -1
- package/dist/algorithms/combinations.js +8 -1
- package/dist/algorithms/combinations.js.map +1 -1
- package/dist/algorithms/degreesToRadians.d.ts +7 -0
- package/dist/algorithms/degreesToRadians.d.ts.map +1 -1
- package/dist/algorithms/degreesToRadians.js +7 -0
- package/dist/algorithms/degreesToRadians.js.map +1 -1
- package/dist/algorithms/factorial.d.ts +6 -0
- package/dist/algorithms/factorial.d.ts.map +1 -1
- package/dist/algorithms/factorial.js +15 -5
- package/dist/algorithms/factorial.js.map +1 -1
- package/dist/algorithms/fibonacci.d.ts +6 -1
- package/dist/algorithms/fibonacci.d.ts.map +1 -1
- package/dist/algorithms/fibonacci.js +6 -1
- package/dist/algorithms/fibonacci.js.map +1 -1
- package/dist/algorithms/greatestCommonDivisor.d.ts +14 -0
- package/dist/algorithms/greatestCommonDivisor.d.ts.map +1 -1
- package/dist/algorithms/greatestCommonDivisor.js +7 -9
- package/dist/algorithms/greatestCommonDivisor.js.map +1 -1
- package/dist/algorithms/hypergeometricPmf.d.ts +9 -0
- package/dist/algorithms/hypergeometricPmf.d.ts.map +1 -1
- package/dist/algorithms/hypergeometricPmf.js +10 -1
- package/dist/algorithms/hypergeometricPmf.js.map +1 -1
- package/dist/algorithms/isPrime.d.ts +6 -0
- package/dist/algorithms/isPrime.d.ts.map +1 -1
- package/dist/algorithms/isPrime.js +8 -1
- package/dist/algorithms/isPrime.js.map +1 -1
- package/dist/algorithms/permutations.d.ts +7 -0
- package/dist/algorithms/permutations.d.ts.map +1 -1
- package/dist/algorithms/permutations.js +8 -1
- package/dist/algorithms/permutations.js.map +1 -1
- package/dist/algorithms/primeFactorization.d.ts +7 -1
- package/dist/algorithms/primeFactorization.d.ts.map +1 -1
- package/dist/algorithms/primeFactorization.js +10 -3
- package/dist/algorithms/primeFactorization.js.map +1 -1
- package/dist/algorithms/radiansToDegrees.d.ts +7 -0
- package/dist/algorithms/radiansToDegrees.d.ts.map +1 -1
- package/dist/algorithms/radiansToDegrees.js +7 -0
- package/dist/algorithms/radiansToDegrees.js.map +1 -1
- package/dist/algorithms/summation.d.ts +8 -0
- package/dist/algorithms/summation.d.ts.map +1 -1
- package/dist/algorithms/summation.js +9 -0
- package/dist/algorithms/summation.js.map +1 -1
- package/dist/index.d.ts +32 -33
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -27
- package/dist/index.js.map +1 -1
- package/dist/linalg/DualQuaternion.d.ts +460 -83
- package/dist/linalg/DualQuaternion.d.ts.map +1 -1
- package/dist/linalg/DualQuaternion.js +514 -133
- package/dist/linalg/DualQuaternion.js.map +1 -1
- package/dist/linalg/Matrix.d.ts +80 -12
- package/dist/linalg/Matrix.d.ts.map +1 -1
- package/dist/linalg/Matrix2.d.ts +337 -52
- package/dist/linalg/Matrix2.d.ts.map +1 -1
- package/dist/linalg/Matrix2.js +345 -61
- package/dist/linalg/Matrix2.js.map +1 -1
- package/dist/linalg/Matrix3.d.ts +470 -72
- package/dist/linalg/Matrix3.d.ts.map +1 -1
- package/dist/linalg/Matrix3.js +488 -94
- package/dist/linalg/Matrix3.js.map +1 -1
- package/dist/linalg/Matrix4.d.ts +842 -137
- package/dist/linalg/Matrix4.d.ts.map +1 -1
- package/dist/linalg/Matrix4.js +896 -175
- package/dist/linalg/Matrix4.js.map +1 -1
- package/dist/linalg/Quaternion.d.ts +395 -70
- package/dist/linalg/Quaternion.d.ts.map +1 -1
- package/dist/linalg/Quaternion.js +416 -70
- package/dist/linalg/Quaternion.js.map +1 -1
- package/dist/linalg/SlowMatrix.d.ts +79 -9
- package/dist/linalg/SlowMatrix.d.ts.map +1 -1
- package/dist/linalg/SlowMatrix.js +147 -27
- package/dist/linalg/SlowMatrix.js.map +1 -1
- package/dist/linalg/SlowSquareMatrix.d.ts +58 -3
- package/dist/linalg/SlowSquareMatrix.d.ts.map +1 -1
- package/dist/linalg/SlowSquareMatrix.js +111 -21
- package/dist/linalg/SlowSquareMatrix.js.map +1 -1
- package/dist/linalg/SquareMatrix.d.ts +26 -3
- package/dist/linalg/SquareMatrix.d.ts.map +1 -1
- package/dist/linalg/Vector.d.ts +148 -24
- package/dist/linalg/Vector.d.ts.map +1 -1
- package/dist/linalg/Vector2.d.ts +484 -84
- package/dist/linalg/Vector2.d.ts.map +1 -1
- package/dist/linalg/Vector2.js +487 -71
- package/dist/linalg/Vector2.js.map +1 -1
- package/dist/linalg/Vector3.d.ts +582 -98
- package/dist/linalg/Vector3.d.ts.map +1 -1
- package/dist/linalg/Vector3.js +625 -134
- package/dist/linalg/Vector3.js.map +1 -1
- package/dist/linalg/Vector4.d.ts +450 -75
- package/dist/linalg/Vector4.d.ts.map +1 -1
- package/dist/linalg/Vector4.js +447 -62
- package/dist/linalg/Vector4.js.map +1 -1
- package/dist/types/AxisAngle.d.ts +4 -1
- package/dist/types/AxisAngle.d.ts.map +1 -1
- package/dist/types/FieldOfView.d.ts +5 -0
- package/dist/types/FieldOfView.d.ts.map +1 -1
- package/dist/utility/BigNumber.d.ts +41 -8
- package/dist/utility/BigNumber.d.ts.map +1 -1
- package/dist/utility/BigNumber.js +47 -5
- package/dist/utility/BigNumber.js.map +1 -1
- package/dist/utility/MagnitudeError.d.ts +5 -0
- package/dist/utility/MagnitudeError.d.ts.map +1 -1
- package/dist/utility/MagnitudeError.js +6 -1
- package/dist/utility/MagnitudeError.js.map +1 -1
- package/dist/utility/MatrixSizeError.d.ts +5 -0
- package/dist/utility/MatrixSizeError.d.ts.map +1 -1
- package/dist/utility/MatrixSizeError.js +5 -0
- package/dist/utility/MatrixSizeError.js.map +1 -1
- package/dist/utility/PartialMatrixError.d.ts +5 -0
- package/dist/utility/PartialMatrixError.d.ts.map +1 -1
- package/dist/utility/PartialMatrixError.js +5 -0
- package/dist/utility/PartialMatrixError.js.map +1 -1
- package/dist/utility/SingularMatrixError.d.ts +8 -0
- package/dist/utility/SingularMatrixError.d.ts.map +1 -1
- package/dist/utility/SingularMatrixError.js +8 -0
- package/dist/utility/SingularMatrixError.js.map +1 -1
- package/dist/utility/epsilon.d.ts +1 -0
- package/dist/utility/epsilon.d.ts.map +1 -1
- package/dist/utility/epsilon.js +1 -0
- package/dist/utility/epsilon.js.map +1 -1
- package/package.json +20 -51
- package/src/algorithms/combinations.ts +4 -4
- package/src/algorithms/degreesToRadians.ts +3 -3
- package/src/algorithms/factorial.ts +13 -8
- package/src/algorithms/fibonacci.ts +3 -3
- package/src/algorithms/greatestCommonDivisor.ts +15 -19
- package/src/algorithms/hypergeometricPmf.ts +5 -6
- package/src/algorithms/isPrime.ts +4 -4
- package/src/algorithms/permutations.ts +4 -4
- package/src/algorithms/primeFactorization.ts +9 -9
- package/src/algorithms/radiansToDegrees.ts +3 -3
- package/src/algorithms/summation.ts +5 -5
- package/src/index.ts +35 -33
- package/src/linalg/DualQuaternion.ts +558 -804
- package/src/linalg/Matrix.ts +35 -36
- package/src/linalg/Matrix2.ts +277 -413
- package/src/linalg/Matrix3.ts +532 -737
- package/src/linalg/Matrix4.ts +1078 -1604
- package/src/linalg/Quaternion.ts +415 -690
- package/src/linalg/SlowMatrix.ts +118 -69
- package/src/linalg/SlowSquareMatrix.ts +85 -56
- package/src/linalg/SquareMatrix.ts +7 -7
- package/src/linalg/Vector.ts +71 -70
- package/src/linalg/Vector2.ts +380 -576
- package/src/linalg/Vector3.ts +544 -840
- package/src/linalg/Vector4.ts +383 -549
- package/src/types/AxisAngle.ts +1 -1
- package/src/utility/BigNumber.ts +33 -42
- package/src/utility/MagnitudeError.ts +4 -4
- package/src/utility/MatrixSizeError.ts +2 -3
- package/src/utility/PartialMatrixError.ts +2 -3
- package/src/utility/SingularMatrixError.ts +2 -2
- package/src/utility/epsilon.ts +1 -4
- package/dist/types/IntegerRepresentation.d.ts +0 -2
- package/dist/types/IntegerRepresentation.d.ts.map +0 -1
- package/dist/types/IntegerRepresentation.js +0 -2
- package/dist/types/IntegerRepresentation.js.map +0 -1
- package/src/types/IntegerRepresentation.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { default as combinations } from "
|
|
2
|
-
export { default as degreesToRadians } from "
|
|
3
|
-
export { default as factorial } from "
|
|
4
|
-
export { default as fibonacci } from "
|
|
5
|
-
export { default as greatestCommonDivisor } from "
|
|
6
|
-
export { default as hypergeometricPmf } from "
|
|
7
|
-
export { default as isPrime } from "
|
|
8
|
-
export { default as permutations } from "
|
|
9
|
-
export { default as primeFactorization } from "
|
|
10
|
-
export { default as radiansToDegrees } from "
|
|
11
|
-
export { default as summation } from "
|
|
12
|
-
export { default as DualQuaternion } from "
|
|
13
|
-
export { default as Matrix2 } from "
|
|
14
|
-
export { default as Matrix3 } from "
|
|
15
|
-
export { default as Matrix4 } from "
|
|
16
|
-
export { default as Quaternion } from "
|
|
17
|
-
export { default as SlowMatrix } from "
|
|
18
|
-
export { default as SlowSquareMatrix } from "
|
|
19
|
-
export { default as Vector2 } from "
|
|
20
|
-
export { default as Vector3 } from "
|
|
21
|
-
export { default as Vector4 } from "
|
|
22
|
-
export { default as BigNumber } from "
|
|
23
|
-
export { default as epsilon } from "
|
|
24
|
-
export { default as MagnitudeError } from "
|
|
25
|
-
export { default as MatrixSizeError } from "
|
|
26
|
-
export { default as PartialMatrixError } from "
|
|
27
|
-
export { default as SingularMatrixError } from "
|
|
1
|
+
export { default as combinations } from "./algorithms/combinations.js";
|
|
2
|
+
export { default as degreesToRadians } from "./algorithms/degreesToRadians.js";
|
|
3
|
+
export { default as factorial } from "./algorithms/factorial.js";
|
|
4
|
+
export { default as fibonacci } from "./algorithms/fibonacci.js";
|
|
5
|
+
export { default as greatestCommonDivisor } from "./algorithms/greatestCommonDivisor.js";
|
|
6
|
+
export { default as hypergeometricPmf } from "./algorithms/hypergeometricPmf.js";
|
|
7
|
+
export { default as isPrime } from "./algorithms/isPrime.js";
|
|
8
|
+
export { default as permutations } from "./algorithms/permutations.js";
|
|
9
|
+
export { default as primeFactorization } from "./algorithms/primeFactorization.js";
|
|
10
|
+
export { default as radiansToDegrees } from "./algorithms/radiansToDegrees.js";
|
|
11
|
+
export { default as summation } from "./algorithms/summation.js";
|
|
12
|
+
export { default as DualQuaternion } from "./linalg/DualQuaternion.js";
|
|
13
|
+
export { default as Matrix2 } from "./linalg/Matrix2.js";
|
|
14
|
+
export { default as Matrix3 } from "./linalg/Matrix3.js";
|
|
15
|
+
export { default as Matrix4 } from "./linalg/Matrix4.js";
|
|
16
|
+
export { default as Quaternion } from "./linalg/Quaternion.js";
|
|
17
|
+
export { default as SlowMatrix } from "./linalg/SlowMatrix.js";
|
|
18
|
+
export { default as SlowSquareMatrix } from "./linalg/SlowSquareMatrix.js";
|
|
19
|
+
export { default as Vector2 } from "./linalg/Vector2.js";
|
|
20
|
+
export { default as Vector3 } from "./linalg/Vector3.js";
|
|
21
|
+
export { default as Vector4 } from "./linalg/Vector4.js";
|
|
22
|
+
export { default as BigNumber } from "./utility/BigNumber.js";
|
|
23
|
+
export { default as epsilon } from "./utility/epsilon.js";
|
|
24
|
+
export { default as MagnitudeError } from "./utility/MagnitudeError.js";
|
|
25
|
+
export { default as MatrixSizeError } from "./utility/MatrixSizeError.js";
|
|
26
|
+
export { default as PartialMatrixError } from "./utility/PartialMatrixError.js";
|
|
27
|
+
export { default as SingularMatrixError } from "./utility/SingularMatrixError.js";
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAEN,OAAO,IAAI,cAAc,EACzB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAoB,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAoB,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAoB,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAEN,OAAO,IAAI,UAAU,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAG3E,OAAO,EAAoB,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAoB,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAoB,OAAO,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG3E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,90 +1,467 @@
|
|
|
1
|
-
import { type Matrix4Like } from "
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
1
|
+
import { type Matrix4Like } from "./Matrix4.js";
|
|
2
|
+
import { type QuaternionLike } from "./Quaternion.js";
|
|
3
|
+
import { type Vector3Like } from "./Vector3.js";
|
|
4
|
+
/** A complex number that is commonly used to describe transformations. */
|
|
5
|
+
export interface DualQuaternionLike extends Record<number, number> {
|
|
6
|
+
/** The first real component of this dual quaternion. */
|
|
7
|
+
0: number;
|
|
8
|
+
/** The second real component of this dual quaternion. */
|
|
9
|
+
1: number;
|
|
10
|
+
/** The third real component of this dual quaternion. */
|
|
11
|
+
2: number;
|
|
12
|
+
/** The fourth real component of this dual quaternion. */
|
|
13
|
+
3: number;
|
|
14
|
+
/** The first dual component of this dual quaternion. */
|
|
15
|
+
4: number;
|
|
16
|
+
/** The second dual component of this dual quaternion. */
|
|
17
|
+
5: number;
|
|
18
|
+
/** The third dual component of this dual quaternion. */
|
|
19
|
+
6: number;
|
|
20
|
+
/** The fourth dual component of this dual quaternion. */
|
|
21
|
+
7: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create a dual quaternion-like object.
|
|
25
|
+
* @returns A dual quaternion-like object.
|
|
26
|
+
*/
|
|
27
|
+
export declare const createDualQuaternionLike: () => DualQuaternionLike;
|
|
28
|
+
/**
|
|
29
|
+
* Create a dual quaternion with the given values.
|
|
30
|
+
* @param x1 - The first real component.
|
|
31
|
+
* @param y1 - The second real component.
|
|
32
|
+
* @param z1 - The third real component.
|
|
33
|
+
* @param w1 - The fourth real component.
|
|
34
|
+
* @param x2 - The first dual component.
|
|
35
|
+
* @param y2 - The second dual component.
|
|
36
|
+
* @param z2 - The third dual component.
|
|
37
|
+
* @param w2 - The fourth dual component.
|
|
38
|
+
* @param out - The dual quaternion to store the result in.
|
|
39
|
+
* @returns A new dual quaternion.
|
|
40
|
+
*/
|
|
41
|
+
export declare const fromValues: <T extends DualQuaternionLike>(x1: number, y1: number, z1: number, w1: number, x2: number, y2: number, z2: number, w2: number, out: T) => T;
|
|
42
|
+
/**
|
|
43
|
+
* Copy the values from one dual quaternion to another.
|
|
44
|
+
* @param dualQuaternion - The dual quaternion to copy.
|
|
45
|
+
* @param out - The dual quaternion to store the result in.
|
|
46
|
+
* @returns The copy.
|
|
47
|
+
*/
|
|
48
|
+
export declare const copy: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
49
|
+
/**
|
|
50
|
+
* Create a dual quaternion from the given quaternion and translation.
|
|
51
|
+
* @param quaternion - The quaternion.
|
|
52
|
+
* @param translation - The translation.
|
|
53
|
+
* @param out - The dual quaternion to store the result in.
|
|
54
|
+
* @returns The dual quaternion.
|
|
55
|
+
*/
|
|
56
|
+
export declare const fromRotationTranslation: <T extends DualQuaternionLike>(quaternion: QuaternionLike, translation: Vector3Like, out: T) => T;
|
|
57
|
+
/**
|
|
58
|
+
* Create a dual quaternion from the given translation.
|
|
59
|
+
* @param translation - The translation.
|
|
60
|
+
* @param out - The dual quaternion to store the result in.
|
|
61
|
+
* @returns The dual quaternion.
|
|
62
|
+
*/
|
|
63
|
+
export declare const fromTranslation: <T extends DualQuaternionLike>(translation: Vector3Like, out: T) => T;
|
|
64
|
+
/**
|
|
65
|
+
* Create a dual quaternion from the given quaternion.
|
|
66
|
+
* @param quaternion - The quaternion.
|
|
67
|
+
* @param out - The dual quaternion to store the result in.
|
|
68
|
+
* @returns The dual quaternion.
|
|
69
|
+
*/
|
|
70
|
+
export declare const fromRotation: <T extends DualQuaternionLike>(quaternion: QuaternionLike, out: T) => T;
|
|
71
|
+
/**
|
|
72
|
+
* Create a dual quaternion from the given four-by-four matrix.
|
|
73
|
+
* @param matrix - The matrix.
|
|
74
|
+
* @param out - The dual quaternion to store the result in.
|
|
75
|
+
* @returns The dual quaternion.
|
|
76
|
+
*/
|
|
77
|
+
export declare const fromMatrix4: <T extends DualQuaternionLike>(matrix: Matrix4Like, out: T) => T;
|
|
78
|
+
/**
|
|
79
|
+
* Set a dual quaternion to the identity dual quaternion.
|
|
80
|
+
* @param out - The dual quaternion to store the result in.
|
|
81
|
+
* @returns The identity dual quaternion.
|
|
82
|
+
*/
|
|
83
|
+
export declare const identity: <T extends DualQuaternionLike>(out: T) => T;
|
|
84
|
+
/**
|
|
85
|
+
* Get the dual part of a dual quaternion.
|
|
86
|
+
* @param dualQuaternion - The dual quaternion.
|
|
87
|
+
* @param out - The quaternion to store the result in.
|
|
88
|
+
* @returns The dual part.
|
|
89
|
+
*/
|
|
90
|
+
export declare const getDual: <T extends QuaternionLike>(dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
91
|
+
/**
|
|
92
|
+
* Set the dual part of a dual quaternion.
|
|
93
|
+
* @param quaternion - The quaternion to set as the dual part.
|
|
94
|
+
* @param out - The dual quaternion to store the result in.
|
|
95
|
+
* @returns The dual quaternion.
|
|
96
|
+
*/
|
|
97
|
+
export declare const setDual: <T extends DualQuaternionLike>(quaternion: QuaternionLike, out: T) => T;
|
|
98
|
+
/**
|
|
99
|
+
* Get the translation of a normalized dual quaternion.
|
|
100
|
+
* @param dualQuaternion - The dual quaternion.
|
|
101
|
+
* @param out - The vector to store the result in.
|
|
102
|
+
* @returns The translation.
|
|
103
|
+
*/
|
|
104
|
+
export declare const getTranslation: <T extends Vector3Like>(dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
105
|
+
/**
|
|
106
|
+
* Translate a dual quaternion by the given vector.
|
|
107
|
+
* @param dualQuaternion - The dual quaternion.
|
|
108
|
+
* @param vector - The vector.
|
|
109
|
+
* @param out - The dual quaternion to store the result in.
|
|
110
|
+
* @returns The translated dual quaternion.
|
|
111
|
+
*/
|
|
112
|
+
export declare const translate: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, vector: Vector3Like, out: T) => T;
|
|
113
|
+
/**
|
|
114
|
+
* Rotate a dual quaternion around the X-axis.
|
|
115
|
+
* @param dualQuaternion - The dual quaternion.
|
|
116
|
+
* @param radians - The angle to rotate by in radians.
|
|
117
|
+
* @param out - The dual quaternion to store the result in.
|
|
118
|
+
* @returns The rotated dual quaternion.
|
|
119
|
+
*/
|
|
120
|
+
export declare const rotateX: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, radians: number, out: T) => T;
|
|
121
|
+
/**
|
|
122
|
+
* Rotate a dual quaternion around the Y-axis.
|
|
123
|
+
* @param dualQuaternion - The dual quaternion.
|
|
124
|
+
* @param radians - The angle to rotate by in radians.
|
|
125
|
+
* @param out - The dual quaternion to store the result in.
|
|
126
|
+
* @returns The rotated dual quaternion.
|
|
127
|
+
*/
|
|
128
|
+
export declare const rotateY: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, radians: number, out: T) => T;
|
|
129
|
+
/**
|
|
130
|
+
* Rotate a dual quaternion around the Z-axis.
|
|
131
|
+
* @param dualQuaternion - The dual quaternion.
|
|
132
|
+
* @param radians - The angle to rotate by in radians.
|
|
133
|
+
* @param out - The dual quaternion to store the result in.
|
|
134
|
+
* @returns The rotated dual quaternion.
|
|
135
|
+
*/
|
|
136
|
+
export declare const rotateZ: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, radians: number, out: T) => T;
|
|
137
|
+
/**
|
|
138
|
+
* Multiply a dual quaternion by a quaternion.
|
|
139
|
+
* @param dualQuaternion - The dual quaternion.
|
|
140
|
+
* @param quaternion - The quaternion.
|
|
141
|
+
* @param out - The dual quaternion to store the result in.
|
|
142
|
+
* @returns The rotated dual quaternion.
|
|
143
|
+
*/
|
|
144
|
+
export declare const rotateByQuaternionAppend: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, quaternion: QuaternionLike, out: T) => T;
|
|
145
|
+
/**
|
|
146
|
+
* Multiply a quaternion by a dual quaternion.
|
|
147
|
+
* @param quaternion - The quaternion.
|
|
148
|
+
* @param dualQuaternion - The dual quaternion.
|
|
149
|
+
* @param out - The dual quaternion to store the result in.
|
|
150
|
+
* @returns The rotated dual quaternion.
|
|
151
|
+
*/
|
|
152
|
+
export declare const rotateByQuaternionPrepend: <T extends DualQuaternionLike>(quaternion: QuaternionLike, dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
153
|
+
/**
|
|
154
|
+
* Rotate a dual quaternion around an axis.
|
|
155
|
+
* @param dualQuaternion - The dual quaternion.
|
|
156
|
+
* @param axis - The axis.
|
|
157
|
+
* @param radians - The angle of the rotation in radians.
|
|
158
|
+
* @param out - The dual quaternion to store the result in.
|
|
159
|
+
* @returns A normalized dual quaternion.
|
|
160
|
+
*/
|
|
161
|
+
export declare const rotateAroundAxis: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, axis: Vector3Like, radians: number, out: T) => T;
|
|
162
|
+
/**
|
|
163
|
+
* Add two dual quaternions.
|
|
164
|
+
* @param a - The augend.
|
|
165
|
+
* @param b - The addend.
|
|
166
|
+
* @param out - The dual quaternion to store the result in.
|
|
167
|
+
* @returns The sum.
|
|
168
|
+
*/
|
|
169
|
+
export declare const add: <T extends DualQuaternionLike>(a: DualQuaternionLike, b: DualQuaternionLike, out: T) => T;
|
|
170
|
+
/**
|
|
171
|
+
* Multiply two dual quaternions.
|
|
172
|
+
* @param a - The multiplier.
|
|
173
|
+
* @param b - The multiplicand.
|
|
174
|
+
* @param out - The dual quaternion to store the result in.
|
|
175
|
+
* @returns The product.
|
|
176
|
+
*/
|
|
177
|
+
export declare const multiply: <T extends DualQuaternionLike>(a: DualQuaternionLike, b: DualQuaternionLike, out: T) => T;
|
|
178
|
+
/**
|
|
179
|
+
* Multiply a dual quaternion by a scalar.
|
|
180
|
+
* @param dualQuaternion - The multiplicand.
|
|
181
|
+
* @param scalar - The multiplier.
|
|
182
|
+
* @param out - The dual quaternion to store the result in.
|
|
183
|
+
* @returns The sum.
|
|
184
|
+
*/
|
|
185
|
+
export declare const scale: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, scalar: number, out: T) => T;
|
|
186
|
+
/**
|
|
187
|
+
* Perform a linear interpolation between two dual quaternions.
|
|
188
|
+
* @param a - The first dual quaternion.
|
|
189
|
+
* @param b - The second dual quaternion.
|
|
190
|
+
* @param t - The interpolation amount in `[0,1]`.
|
|
191
|
+
* @param out - The dual quaternion to store the result in.
|
|
192
|
+
* @returns The interpolated value.
|
|
193
|
+
*/
|
|
194
|
+
export declare const lerp: <T extends DualQuaternionLike>(a: DualQuaternionLike, b: DualQuaternionLike, t: number, out: T) => T;
|
|
195
|
+
/**
|
|
196
|
+
* Calculate the inverse of a dual quaternion. If the dual quaternion is normalized, the conjugate is equivalent and faster to calculate.
|
|
197
|
+
* @param dualQuaternion - The dual quaternion.
|
|
198
|
+
* @param out - The dual quaternion to store the result in.
|
|
199
|
+
* @returns The inverse.
|
|
200
|
+
*/
|
|
201
|
+
export declare const invert: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
202
|
+
/**
|
|
203
|
+
* Calculate the conjugate of a dual quaternion. If the dual quaternion is normalized, this is equivalent to its inverse and faster to calculate.
|
|
204
|
+
* @param dualQuaternion - The dual quaternion.
|
|
205
|
+
* @param out - The dual quaternion to store the result in.
|
|
206
|
+
* @returns The conjugate.
|
|
207
|
+
*/
|
|
208
|
+
export declare const conjugate: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
209
|
+
/**
|
|
210
|
+
* Normalize a dual quaternion.
|
|
211
|
+
* @param dualQuaternion - The dual quaternion.
|
|
212
|
+
* @param out - The dual quaternion to store the result in.
|
|
213
|
+
* @returns The normalized dual quaternion.
|
|
214
|
+
*/
|
|
215
|
+
export declare const normalize: <T extends DualQuaternionLike>(dualQuaternion: DualQuaternionLike, out: T) => T;
|
|
216
|
+
/**
|
|
217
|
+
* Determine whether or not two dual quaternions are exactly equivalent.
|
|
218
|
+
* @param a - The first dual quaternion.
|
|
219
|
+
* @param b - The second dual quaternion.
|
|
220
|
+
* @returns Whether or not the dual quaternions are equivalent.
|
|
221
|
+
*/
|
|
222
|
+
export declare const exactEquals: (a: DualQuaternionLike, b: DualQuaternionLike) => boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Determine whether or not two dual quaternions are roughly equivalent.
|
|
225
|
+
* @param a - The first dual quaternion.
|
|
226
|
+
* @param b - The second dual quaternion.
|
|
227
|
+
* @returns Whether or not the dual quaternions are equivalent.
|
|
228
|
+
*/
|
|
229
|
+
export declare const equals: (a: DualQuaternionLike, b: DualQuaternionLike) => boolean;
|
|
230
|
+
/**
|
|
231
|
+
* A complex number that is commonly used to describe transformations.
|
|
232
|
+
* @see [Dual quaternion](https://en.wikipedia.org/wiki/Dual_quaternion)
|
|
233
|
+
*/
|
|
234
|
+
export default class DualQuaternion extends Float32Array implements DualQuaternionLike {
|
|
235
|
+
/**
|
|
236
|
+
* Create a dual quaternion with the given values.
|
|
237
|
+
* @param x1 - The first real component.
|
|
238
|
+
* @param y1 - The second real component.
|
|
239
|
+
* @param z1 - The third real component.
|
|
240
|
+
* @param w1 - The fourth real component.
|
|
241
|
+
* @param x2 - The first dual component.
|
|
242
|
+
* @param y2 - The second dual component.
|
|
243
|
+
* @param z2 - The third dual component.
|
|
244
|
+
* @param w2 - The fourth dual component.
|
|
245
|
+
* @param out - The dual quaternion to store the result in.
|
|
246
|
+
* @returns A new dual quaternion.
|
|
247
|
+
*/
|
|
248
|
+
static fromValues<T extends DualQuaternionLike>(x1: number, y1: number, z1: number, w1: number, x2: number, y2: number, z2: number, w2: number, out?: T): T;
|
|
249
|
+
/**
|
|
250
|
+
* Create a dual quaternion from the given quaternion and translation.
|
|
251
|
+
* @param q - The quaternion.
|
|
252
|
+
* @param t - The translation.
|
|
253
|
+
* @param out - The dual quaternion to store the result in.
|
|
254
|
+
* @returns The dual quaternion.
|
|
255
|
+
*/
|
|
256
|
+
static fromRotationTranslation<T extends DualQuaternionLike>(q: QuaternionLike, t: Vector3Like, out?: T): T;
|
|
257
|
+
/**
|
|
258
|
+
* Create a dual quaternion from the given translation.
|
|
259
|
+
* @param t - The translation.
|
|
260
|
+
* @param out - The dual quaternion to store the result in.
|
|
261
|
+
* @returns The dual quaternion.
|
|
262
|
+
*/
|
|
263
|
+
static fromTranslation<T extends DualQuaternionLike>(t: Vector3Like, out?: T): T;
|
|
264
|
+
/**
|
|
265
|
+
* Create a dual quaternion from the given quaternion.
|
|
266
|
+
* @param q - The quaternion.
|
|
267
|
+
* @param out - The dual quaternion to store the result in.
|
|
268
|
+
* @returns The dual quaternion.
|
|
269
|
+
*/
|
|
270
|
+
static fromRotation<T extends DualQuaternionLike>(q: QuaternionLike, out?: T): T;
|
|
271
|
+
/**
|
|
272
|
+
* Create a dual quaternion from the given four-by-four matrix.
|
|
273
|
+
* @param matrix - The matrix.
|
|
274
|
+
* @param out - The dual quaternion to store the result in.
|
|
275
|
+
* @returns The dual quaternion.
|
|
276
|
+
*/
|
|
277
|
+
static fromMatrix4<T extends DualQuaternionLike>(matrix: Matrix4Like, out?: T): T;
|
|
278
|
+
/**
|
|
279
|
+
* Create an identity dual quaternion.
|
|
280
|
+
* @see [Dual quaternion](https://en.wikipedia.org/wiki/Dual_quaternion)
|
|
281
|
+
*/
|
|
43
282
|
constructor();
|
|
283
|
+
/** The first real component of this dual quaternion. */
|
|
284
|
+
0: number;
|
|
285
|
+
/** The second real component of this dual quaternion. */
|
|
286
|
+
1: number;
|
|
287
|
+
/** The third real component of this dual quaternion. */
|
|
288
|
+
2: number;
|
|
289
|
+
/** The fourth real component of this dual quaternion. */
|
|
290
|
+
3: number;
|
|
291
|
+
/** The first dual component of this dual quaternion. */
|
|
292
|
+
4: number;
|
|
293
|
+
/** The second dual component of this dual quaternion. */
|
|
294
|
+
5: number;
|
|
295
|
+
/** The third dual component of this dual quaternion. */
|
|
296
|
+
6: number;
|
|
297
|
+
/** The fourth dual component of this dual quaternion. */
|
|
298
|
+
7: number;
|
|
299
|
+
/**
|
|
300
|
+
* Copy the values from another dual quaternion to this one.
|
|
301
|
+
* @param dualQuaternion - The dual quaternion to copy.
|
|
302
|
+
* @returns This dual quaternion.
|
|
303
|
+
*/
|
|
44
304
|
copy(dualQuaternion: DualQuaternionLike): this;
|
|
45
|
-
|
|
46
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Copy the values from this dual quaternion to another one.
|
|
307
|
+
* @param out - The dual quaternion to store the result in.
|
|
308
|
+
* @returns The copy.
|
|
309
|
+
*/
|
|
310
|
+
clone<T extends DualQuaternionLike>(out?: T): T;
|
|
311
|
+
/**
|
|
312
|
+
* Set this dual quaternion to the identity dual quaternion.
|
|
313
|
+
* @returns The identity dual quaternion.
|
|
314
|
+
*/
|
|
47
315
|
identity(): this;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
316
|
+
/**
|
|
317
|
+
* Get the real part of this dual quaternion.
|
|
318
|
+
* @param out - The quaternion to store the result in.
|
|
319
|
+
* @returns The real part.
|
|
320
|
+
*/
|
|
321
|
+
getReal<T extends QuaternionLike>(out?: T): T;
|
|
322
|
+
/**
|
|
323
|
+
* Set the real part of this dual quaternion.
|
|
324
|
+
* @param q - The quaternion.
|
|
325
|
+
*/
|
|
326
|
+
setReal(q: QuaternionLike): void;
|
|
327
|
+
/**
|
|
328
|
+
* Get the dual part of this dual quaternion.
|
|
329
|
+
* @param out - The quaternion to store the result in.
|
|
330
|
+
* @returns The dual part.
|
|
331
|
+
*/
|
|
332
|
+
getDual<T extends QuaternionLike>(out?: T): T;
|
|
333
|
+
/**
|
|
334
|
+
* Set the real part of this dual quaternion.
|
|
335
|
+
* @param q - The quaternion.
|
|
336
|
+
*/
|
|
337
|
+
setDual(q: QuaternionLike): void;
|
|
338
|
+
/**
|
|
339
|
+
* Get the translation of this normalized dual quaternion.
|
|
340
|
+
* @param out - The vector to store the result in.
|
|
341
|
+
* @returns The translation.
|
|
342
|
+
*/
|
|
343
|
+
getTranslation<T extends Vector3Like>(out?: T): T;
|
|
344
|
+
/**
|
|
345
|
+
* Translate this dual quaternion by the given vector.
|
|
346
|
+
* @param v - The vector.
|
|
347
|
+
* @param out - The dual quaternion to store the result in.
|
|
348
|
+
* @returns The translated dual quaternion.
|
|
349
|
+
*/
|
|
350
|
+
translate<T extends DualQuaternionLike>(v: Vector3Like, out?: T): T;
|
|
351
|
+
/**
|
|
352
|
+
* Rotate this dual quaternion around the X-axis.
|
|
353
|
+
* @param r - The angle to rotate by in radians.
|
|
354
|
+
* @param out - The dual quaternion to store the result in.
|
|
355
|
+
* @returns The rotated dual quaternion.
|
|
356
|
+
*/
|
|
357
|
+
rotateX<T extends DualQuaternionLike>(r: number, out?: T): T;
|
|
358
|
+
/**
|
|
359
|
+
* Rotate this dual quaternion around the Y-axis.
|
|
360
|
+
* @param r - The angle to rotate by in radians.
|
|
361
|
+
* @param out - The dual quaternion to store the result in.
|
|
362
|
+
* @returns The rotated dual quaternion.
|
|
363
|
+
*/
|
|
364
|
+
rotateY<T extends DualQuaternionLike>(r: number, out?: T): T;
|
|
365
|
+
/**
|
|
366
|
+
* Rotate this dual quaternion around the Z-axis.
|
|
367
|
+
* @param r - The angle to rotate by in radians.
|
|
368
|
+
* @param out - The dual quaternion to store the result in.
|
|
369
|
+
* @returns The rotated dual quaternion.
|
|
370
|
+
*/
|
|
371
|
+
rotateZ<T extends DualQuaternionLike>(r: number, out?: T): T;
|
|
372
|
+
/**
|
|
373
|
+
* Multiply this dual quaternion by a quaternion.
|
|
374
|
+
* @param q - The quaternion.
|
|
375
|
+
* @param out - The dual quaternion to store the result in.
|
|
376
|
+
* @returns The rotated dual quaternion.
|
|
377
|
+
* @see [Quaternion](https://en.wikipedia.org/wiki/Quaternion)
|
|
378
|
+
*/
|
|
379
|
+
rotateByQuaternionAppend<T extends DualQuaternionLike>(q: QuaternionLike, out?: T): T;
|
|
380
|
+
/**
|
|
381
|
+
* Multiply a quaternion by this dual quaternion.
|
|
382
|
+
* @param q - The quaternion.
|
|
383
|
+
* @param out - The dual quaternion to store the result in.
|
|
384
|
+
* @returns The rotated dual quaternion.
|
|
385
|
+
* @see [Quaternion](https://en.wikipedia.org/wiki/Quaternion)
|
|
386
|
+
*/
|
|
387
|
+
rotateByQuaternionPrepend<T extends DualQuaternionLike>(q: QuaternionLike, out?: T): T;
|
|
388
|
+
/**
|
|
389
|
+
* Rotate this dual quaternion around an axis.
|
|
390
|
+
* @param axis - The axis.
|
|
391
|
+
* @param r - The angle of the rotation in radians.
|
|
392
|
+
* @param out - The dual quaternion to store the result in.
|
|
393
|
+
* @returns A normalized dual quaternion.
|
|
394
|
+
*/
|
|
395
|
+
rotateAroundAxis<T extends DualQuaternionLike>(axis: Vector3Like, r: number, out?: T): T;
|
|
396
|
+
/**
|
|
397
|
+
* Add another dual quaternion to this one.
|
|
398
|
+
* @param dq - The other dual quaternion.
|
|
399
|
+
* @param out - The dual quaternion to store the result in.
|
|
400
|
+
* @returns The sum.
|
|
401
|
+
*/
|
|
402
|
+
add<T extends DualQuaternionLike>(dq: DualQuaternionLike, out?: T): T;
|
|
403
|
+
/**
|
|
404
|
+
* Multiply this dual quaternion by another one.
|
|
405
|
+
* @param dq - The other dual quaternion.
|
|
406
|
+
* @param out - The dual quaternion to store the result in.
|
|
407
|
+
* @returns The product.
|
|
408
|
+
*/
|
|
409
|
+
multiply<T extends DualQuaternionLike>(dq: DualQuaternionLike, out?: T): T;
|
|
410
|
+
/**
|
|
411
|
+
* Multiply this dual quaternion by a scalar.
|
|
412
|
+
* @param s - The scalar.
|
|
413
|
+
* @param out - The dual quaternion to store the result in.
|
|
414
|
+
* @returns The product.
|
|
415
|
+
*/
|
|
416
|
+
scale<T extends DualQuaternionLike>(s: number, out?: T): T;
|
|
417
|
+
/**
|
|
418
|
+
* Calculate the dot product of this and another dual quaternion.
|
|
419
|
+
* @param dq - The other dual quaternion.
|
|
420
|
+
* @returns The dot product.
|
|
421
|
+
* @see [Dot product](https://en.wikipedia.org/wiki/Dot_product)
|
|
422
|
+
*/
|
|
423
|
+
dot(dq: DualQuaternionLike): number;
|
|
424
|
+
/**
|
|
425
|
+
* Perform a linear interpolation between this and another dual quaternion.
|
|
426
|
+
* @param dq - The other dual quaternion.
|
|
427
|
+
* @param t - The interpolation amount in `[0,1]`.
|
|
428
|
+
* @param out - The dual quaternion to store the result in.
|
|
429
|
+
* @returns The interpolated value.
|
|
430
|
+
*/
|
|
431
|
+
lerp<T extends DualQuaternionLike>(dq: DualQuaternionLike, t: number, out?: T): T;
|
|
432
|
+
/**
|
|
433
|
+
* Calculate the inverse of this dual quaternion. If this dual quaternion is normalized, the conjugate is equivalent and faster to calculate.
|
|
434
|
+
* @param out - The dual quaternion to store the result in.
|
|
435
|
+
* @returns The inverse.
|
|
436
|
+
*/
|
|
437
|
+
invert<T extends DualQuaternionLike>(out?: T): T;
|
|
438
|
+
/**
|
|
439
|
+
* Calculate the conjugate of this dual quaternion. If this dual quaternion is normalized, this is equivalent to its inverse and faster to calculate.
|
|
440
|
+
* @param out - The dual quaternion to store the result in.
|
|
441
|
+
* @returns The conjugate.
|
|
442
|
+
*/
|
|
443
|
+
conjugate<T extends DualQuaternionLike>(out?: T): T;
|
|
444
|
+
/** Get the magnitude (length) of this dual quaternion. */
|
|
83
445
|
get magnitude(): number;
|
|
446
|
+
/** Get the squared magnitude (length) of this dual quaternion. */
|
|
84
447
|
get squaredMagnitude(): number;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
448
|
+
/**
|
|
449
|
+
* Normalize this dual quaternion.
|
|
450
|
+
* @param out - The dual quaternion to store the result in.
|
|
451
|
+
* @returns The normalized dual quaternion.
|
|
452
|
+
*/
|
|
453
|
+
normalize<T extends DualQuaternionLike>(out?: T): T;
|
|
454
|
+
/**
|
|
455
|
+
* Determine whether or not this dual quaternion is exactly equivalent to another.
|
|
456
|
+
* @param dq - The other dual quaternion.
|
|
457
|
+
* @returns Whether or not the dual quaternions are equivalent.
|
|
458
|
+
*/
|
|
459
|
+
exactEquals(dq: DualQuaternionLike): boolean;
|
|
460
|
+
/**
|
|
461
|
+
* Determine whether or not this dual quaternion is roughly equivalent to another.
|
|
462
|
+
* @param dq - The other dual quaternion.
|
|
463
|
+
* @returns Whether or not the dual quaternions are equivalent.
|
|
464
|
+
*/
|
|
465
|
+
equals(dq: DualQuaternionLike): boolean;
|
|
89
466
|
}
|
|
90
467
|
//# sourceMappingURL=DualQuaternion.d.ts.map
|