@fbltd/math 1.0.28 → 1.0.36
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/dist/bin/index.js +1 -1
- package/dist/bin/src/algorithm/centroid.js +5 -0
- package/dist/bin/src/algorithm/index.js +2 -1
- package/dist/bin/src/angle.js +28 -0
- package/dist/bin/src/colors/color.js +1 -1
- package/dist/bin/src/colors/conic.gradient.js +11 -1
- package/dist/bin/src/colors/index.js +2 -2
- package/dist/bin/src/figures/circle.js +1 -1
- package/dist/bin/src/figures/index.js +3 -3
- package/dist/bin/src/figures/point.js +24 -2
- package/dist/bin/src/figures/straight-line.js +1 -1
- package/dist/bin/src/index.js +6 -7
- package/dist/bin/src/matrices/index.js +2 -2
- package/dist/bin/src/matrices/matrix2d.js +2 -1
- package/dist/bin/src/matrices/matrix3d.js +2 -2
- package/dist/types/index.d.ts +1 -2
- package/dist/types/src/algorithm/centroid.d.ts +2 -0
- package/dist/types/src/algorithm/index.d.ts +2 -2
- package/dist/types/src/algorithm/linear-interpolation.d.ts +2 -3
- package/dist/types/src/angle.d.ts +23 -2
- package/dist/types/src/colors/color.d.ts +0 -1
- package/dist/types/src/colors/conic.gradient.d.ts +14 -5
- package/dist/types/src/colors/index.d.ts +2 -3
- package/dist/types/src/colors/utils.d.ts +0 -1
- package/dist/types/src/figures/circle.d.ts +2 -3
- package/dist/types/src/figures/index.d.ts +3 -4
- package/dist/types/src/figures/point.d.ts +23 -3
- package/dist/types/src/figures/straight-line.d.ts +2 -3
- package/dist/types/src/index.d.ts +6 -8
- package/dist/types/src/matrices/index.d.ts +2 -3
- package/dist/types/src/matrices/matrix2d.d.ts +3 -3
- package/dist/types/src/matrices/matrix3d.d.ts +3 -3
- package/dist/types/src/type.utils.d.ts +6 -1
- package/dist/types/src/utils.d.ts +0 -1
- package/package.json +45 -44
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/src/algorithm/index.d.ts.map +0 -1
- package/dist/types/src/algorithm/linear-interpolation.d.ts.map +0 -1
- package/dist/types/src/angle.d.ts.map +0 -1
- package/dist/types/src/colors/color.d.ts.map +0 -1
- package/dist/types/src/colors/conic.gradient.d.ts.map +0 -1
- package/dist/types/src/colors/index.d.ts.map +0 -1
- package/dist/types/src/colors/utils.d.ts.map +0 -1
- package/dist/types/src/figures/circle.d.ts.map +0 -1
- package/dist/types/src/figures/index.d.ts.map +0 -1
- package/dist/types/src/figures/point.d.ts.map +0 -1
- package/dist/types/src/figures/straight-line.d.ts.map +0 -1
- package/dist/types/src/index.d.ts.map +0 -1
- package/dist/types/src/matrices/index.d.ts.map +0 -1
- package/dist/types/src/matrices/matrix2d.d.ts.map +0 -1
- package/dist/types/src/matrices/matrix3d.d.ts.map +0 -1
- package/dist/types/src/type.utils.d.ts.map +0 -1
- package/dist/types/src/utils.d.ts.map +0 -1
package/dist/bin/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./src/index.js";
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./linear-interpolation.js";
|
|
2
|
+
export * from "./centroid.js";
|
package/dist/bin/src/angle.js
CHANGED
|
@@ -6,6 +6,7 @@ export var AngleUnits;
|
|
|
6
6
|
AngleUnits[AngleUnits["Turn"] = 2] = "Turn";
|
|
7
7
|
})(AngleUnits || (AngleUnits = {}));
|
|
8
8
|
export class Angle {
|
|
9
|
+
// #region Converters
|
|
9
10
|
static ofPoint(point, clockwise = true, units = AngleUnits.Deg) {
|
|
10
11
|
let angle;
|
|
11
12
|
if (!clockwise)
|
|
@@ -14,6 +15,9 @@ export class Angle {
|
|
|
14
15
|
angle = Math.atan2(-point[1], point[0]);
|
|
15
16
|
return this.unitFunctionMapping[units](angle, AngleUnits.Rad);
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Угол к радианам
|
|
20
|
+
*/
|
|
17
21
|
static toRad(angle, unit = AngleUnits.Deg) {
|
|
18
22
|
switch (unit) {
|
|
19
23
|
case AngleUnits.Rad:
|
|
@@ -24,6 +28,9 @@ export class Angle {
|
|
|
24
28
|
return Math.PI * 2 * angle;
|
|
25
29
|
}
|
|
26
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Угол к оборотам
|
|
33
|
+
*/
|
|
27
34
|
static toTurn(angle, unit = AngleUnits.Deg) {
|
|
28
35
|
switch (unit) {
|
|
29
36
|
case AngleUnits.Turn:
|
|
@@ -34,6 +41,9 @@ export class Angle {
|
|
|
34
41
|
return angle / (Math.PI * 2);
|
|
35
42
|
}
|
|
36
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Угол к градусам
|
|
46
|
+
*/
|
|
37
47
|
static toDeg(angle, unit = AngleUnits.Rad) {
|
|
38
48
|
switch (unit) {
|
|
39
49
|
case AngleUnits.Deg:
|
|
@@ -44,6 +54,9 @@ export class Angle {
|
|
|
44
54
|
return angle * 180 / Math.PI;
|
|
45
55
|
}
|
|
46
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Привести угол к положительному значению и нормализовать
|
|
59
|
+
*/
|
|
47
60
|
static toPositive(angle, unit) {
|
|
48
61
|
switch (unit) {
|
|
49
62
|
case AngleUnits.Deg:
|
|
@@ -54,16 +67,31 @@ export class Angle {
|
|
|
54
67
|
return toPositive(angle, Math.PI * 2);
|
|
55
68
|
}
|
|
56
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Привести угол к стандантному диапазону
|
|
72
|
+
*
|
|
73
|
+
* Для градусов [0; 360)
|
|
74
|
+
* Для радианов [0; Math.Pi * 2)
|
|
75
|
+
* Для оборотов [0; 1)
|
|
76
|
+
*/
|
|
57
77
|
static normalize(angle, unit) {
|
|
58
78
|
switch (unit) {
|
|
79
|
+
// 0 - 359.9999
|
|
59
80
|
case AngleUnits.Deg:
|
|
60
81
|
return Angle.toPositive(angle, unit) % 360;
|
|
82
|
+
// 0 - Math.PI * 2
|
|
61
83
|
case AngleUnits.Rad:
|
|
62
84
|
return Angle.toPositive(angle, unit) % (Math.PI * 2);
|
|
85
|
+
// 0 - 1
|
|
63
86
|
case AngleUnits.Turn:
|
|
64
87
|
return Angle.toPositive(angle, unit) % 1;
|
|
65
88
|
}
|
|
66
89
|
}
|
|
90
|
+
// #endregion Converters
|
|
91
|
+
// #region representation
|
|
92
|
+
/**
|
|
93
|
+
* From angle to string "rotate({angle}{units})"
|
|
94
|
+
*/
|
|
67
95
|
static toCSS(angle, unit) {
|
|
68
96
|
if (!isCorrectNumber(angle))
|
|
69
97
|
return '';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color } from "./
|
|
1
|
+
import { Color } from "./color.js";
|
|
2
2
|
export class ConicGradient {
|
|
3
3
|
colors;
|
|
4
4
|
constructor(...colors) {
|
|
@@ -8,6 +8,10 @@ export class ConicGradient {
|
|
|
8
8
|
color: this.colors[0].color
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Получить цвет по углу от оси X по часовой стрелке
|
|
13
|
+
* @param angle единица измерения угла должна быть той же самой, что и углы всех передаваемых в констурктор цветов
|
|
14
|
+
*/
|
|
11
15
|
getColorAtAngle(angle) {
|
|
12
16
|
let prev = undefined;
|
|
13
17
|
let next = undefined;
|
|
@@ -57,6 +61,9 @@ export class ConicGradient {
|
|
|
57
61
|
isColorInRange(color) {
|
|
58
62
|
return Boolean(this.getAngleByColor(color));
|
|
59
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Для использования метода, углы должны быть в Turn единицах измерения
|
|
66
|
+
*/
|
|
60
67
|
toCanvas(ctx, center) {
|
|
61
68
|
const gradient = ctx.createConicGradient(0, ...center);
|
|
62
69
|
for (let color of this.colors) {
|
|
@@ -64,6 +71,9 @@ export class ConicGradient {
|
|
|
64
71
|
}
|
|
65
72
|
return gradient;
|
|
66
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Для использования метода, углы должны быть в Turn единицах измерения
|
|
76
|
+
*/
|
|
67
77
|
toCSS() {
|
|
68
78
|
let s = '';
|
|
69
79
|
for (let color of this.colors) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./color.js";
|
|
2
|
+
export * from "./conic.gradient.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./point.js";
|
|
2
|
+
export * from "./circle.js";
|
|
3
|
+
export * from "./straight-line.js";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export class Point {
|
|
2
|
-
static sum(
|
|
3
|
-
|
|
2
|
+
static sum(...ps) {
|
|
3
|
+
let sum = ps[0];
|
|
4
|
+
for (let i = 1; i < ps.length; i++) {
|
|
5
|
+
sum = sum.map((c, j) => c + ps[i][j]);
|
|
6
|
+
}
|
|
7
|
+
return sum;
|
|
4
8
|
}
|
|
5
9
|
static scale(p, scale) {
|
|
6
10
|
return p.map((c) => c * scale);
|
|
@@ -16,6 +20,12 @@ export class Point {
|
|
|
16
20
|
return acc + c * p2[index];
|
|
17
21
|
}, 0);
|
|
18
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Векторное произведение.
|
|
25
|
+
* @returns вектор, перпендикулярный плоскости, образованной двумя переданными векторами.
|
|
26
|
+
* Модуль вектора численно равен площади параллелорамма, построенного на переданных векторах.
|
|
27
|
+
* На этом факте формула и построена.
|
|
28
|
+
*/
|
|
19
29
|
static crossProduct(a, b) {
|
|
20
30
|
return [
|
|
21
31
|
a[1] * b[2] - b[1] * a[2],
|
|
@@ -23,9 +33,21 @@ export class Point {
|
|
|
23
33
|
a[0] * b[1] - b[0] * a[1],
|
|
24
34
|
];
|
|
25
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Смешанное произведение векторов.
|
|
38
|
+
* Скалярное произведение вектора dotFactor на векторное произведение векторов
|
|
39
|
+
* crossFactorA и crossFactorB
|
|
40
|
+
*
|
|
41
|
+
* @return скаляр, равный объёму ориентированного параллелограмма,
|
|
42
|
+
* построенного на переданных векторах
|
|
43
|
+
*/
|
|
26
44
|
static tripleProduct(crossFactorA, crossFactorB, dotFactor) {
|
|
27
45
|
return Point.dotProduct(Point.crossProduct(crossFactorA, crossFactorB), dotFactor);
|
|
28
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Нормаль к поверхности, образованной тремя переданными точками
|
|
49
|
+
* @returns вектор
|
|
50
|
+
*/
|
|
29
51
|
static normal(p1, p2, p3) {
|
|
30
52
|
return Point.crossProduct(Point.dif(p2, p1), Point.dif(p3, p1));
|
|
31
53
|
}
|
package/dist/bin/src/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from './matrices/index.js';
|
|
1
|
+
export * from "./angle.js";
|
|
2
|
+
export * from "./matrices/index.js";
|
|
3
|
+
export * from "./utils.js";
|
|
4
|
+
export * from "./colors/index.js";
|
|
5
|
+
export * from "./figures/index.js";
|
|
6
|
+
export * from "./algorithm/index.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./matrix2d.js";
|
|
2
|
+
export * from "./matrix3d.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Angle, AngleUnits
|
|
1
|
+
import { Angle, AngleUnits } from "../angle.js";
|
|
2
|
+
import { approximately } from "../utils.js";
|
|
2
3
|
export const identityMatrix2d = Object.freeze([1, 0, 0, 1, 0, 0]);
|
|
3
4
|
export function getIdentityMatrix() {
|
|
4
5
|
return [1, 0, 0, 1, 0, 0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Angle, AngleUnits
|
|
2
|
-
import {} from "../
|
|
1
|
+
import { Angle, AngleUnits } from "../angle.js";
|
|
2
|
+
import { approximately } from "../utils.js";
|
|
3
3
|
export const identityMatrix3d = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0];
|
|
4
4
|
Object.freeze(identityMatrix3d);
|
|
5
5
|
export class Matrix3d {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './src/index.
|
|
2
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './src/index.ts';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './linear-interpolation.
|
|
2
|
-
|
|
1
|
+
export * from './linear-interpolation.ts';
|
|
2
|
+
export * from './centroid.ts';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import type { INonEmptyArray } from "../type.utils.
|
|
1
|
+
import type { INonEmptyArray } from "../type.utils.ts";
|
|
2
2
|
export type IControlPoint = {
|
|
3
3
|
controlPoint: number;
|
|
4
4
|
value: number;
|
|
5
5
|
};
|
|
6
6
|
export declare class LinearInterpolation {
|
|
7
|
-
static interpolateArray(atPoint: number, controlPoints: INonEmptyArray<IControlPoint>): number;
|
|
7
|
+
static interpolateArray(atPoint: number, controlPoints: INonEmptyArray<IControlPoint>): number | undefined;
|
|
8
8
|
static interpolateBetween(start: IControlPoint, end: IControlPoint, atPoint: number): number;
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=linear-interpolation.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IPoint2 } from "
|
|
1
|
+
import type { IPoint2 } from "./figures/index.ts";
|
|
2
2
|
export declare enum AngleUnits {
|
|
3
3
|
Deg = 0,
|
|
4
4
|
Rad = 1,
|
|
@@ -6,13 +6,34 @@ export declare enum AngleUnits {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class Angle {
|
|
8
8
|
static ofPoint(point: IPoint2, clockwise?: boolean, units?: AngleUnits): number;
|
|
9
|
+
/**
|
|
10
|
+
* Угол к радианам
|
|
11
|
+
*/
|
|
9
12
|
static toRad(angle: number, unit?: AngleUnits): number;
|
|
13
|
+
/**
|
|
14
|
+
* Угол к оборотам
|
|
15
|
+
*/
|
|
10
16
|
static toTurn(angle: number, unit?: AngleUnits): number;
|
|
17
|
+
/**
|
|
18
|
+
* Угол к градусам
|
|
19
|
+
*/
|
|
11
20
|
static toDeg(angle: number, unit?: AngleUnits): number;
|
|
21
|
+
/**
|
|
22
|
+
* Привести угол к положительному значению и нормализовать
|
|
23
|
+
*/
|
|
12
24
|
static toPositive(angle: number, unit: AngleUnits): number;
|
|
25
|
+
/**
|
|
26
|
+
* Привести угол к стандантному диапазону
|
|
27
|
+
*
|
|
28
|
+
* Для градусов [0; 360)
|
|
29
|
+
* Для радианов [0; Math.Pi * 2)
|
|
30
|
+
* Для оборотов [0; 1)
|
|
31
|
+
*/
|
|
13
32
|
static normalize(angle: number, unit: AngleUnits): number;
|
|
33
|
+
/**
|
|
34
|
+
* From angle to string "rotate({angle}{units})"
|
|
35
|
+
*/
|
|
14
36
|
static toCSS(angle: number, unit: AngleUnits): string;
|
|
15
37
|
private static angleStringMapping;
|
|
16
38
|
private static unitFunctionMapping;
|
|
17
39
|
}
|
|
18
|
-
//# sourceMappingURL=angle.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Color } from "./
|
|
2
|
-
import type { IPoint2 } from "../index.
|
|
1
|
+
import { Color } from "./color.ts";
|
|
2
|
+
import type { IPoint2 } from "../figures/index.ts";
|
|
3
3
|
export declare class ConicGradient {
|
|
4
4
|
colors: {
|
|
5
5
|
angle: number;
|
|
@@ -9,10 +9,19 @@ export declare class ConicGradient {
|
|
|
9
9
|
angle: number;
|
|
10
10
|
color: Color;
|
|
11
11
|
}[]);
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Получить цвет по углу от оси X по часовой стрелке
|
|
14
|
+
* @param angle единица измерения угла должна быть той же самой, что и углы всех передаваемых в констурктор цветов
|
|
15
|
+
*/
|
|
16
|
+
getColorAtAngle(angle: number): Color | undefined;
|
|
17
|
+
getAngleByColor(color: Color): number | undefined;
|
|
14
18
|
isColorInRange(color: Color): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Для использования метода, углы должны быть в Turn единицах измерения
|
|
21
|
+
*/
|
|
15
22
|
toCanvas(ctx: CanvasRenderingContext2D, center: IPoint2): CanvasGradient;
|
|
23
|
+
/**
|
|
24
|
+
* Для использования метода, углы должны быть в Turn единицах измерения
|
|
25
|
+
*/
|
|
16
26
|
toCSS(): string;
|
|
17
27
|
}
|
|
18
|
-
//# sourceMappingURL=conic.gradient.d.ts.map
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './color.
|
|
2
|
-
export * from './conic.gradient.
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './color.ts';
|
|
2
|
+
export * from './conic.gradient.ts';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { IPoint2 } from "./
|
|
2
|
-
import { type IMatrix2d } from "../index.
|
|
1
|
+
import type { IPoint2 } from "./point.ts";
|
|
2
|
+
import { type IMatrix2d } from "../matrices/index.ts";
|
|
3
3
|
export declare class Circle {
|
|
4
4
|
center: IPoint2;
|
|
5
5
|
r: number;
|
|
6
6
|
constructor(center: IPoint2, r: number);
|
|
7
7
|
transform(matrix: IMatrix2d): void;
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=circle.d.ts.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './point.
|
|
2
|
-
export * from './circle.
|
|
3
|
-
export * from './straight-line.
|
|
4
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './point.ts';
|
|
2
|
+
export * from './circle.ts';
|
|
3
|
+
export * from './straight-line.ts';
|
|
@@ -1,14 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Точка/вектор
|
|
3
|
+
*/
|
|
1
4
|
export type IPoint2 = [number, number];
|
|
2
5
|
export type IPoint3 = [number, number, number];
|
|
3
6
|
export type IPoint = IPoint2 | IPoint3;
|
|
4
7
|
export declare class Point {
|
|
5
|
-
static sum<T extends IPoint>(
|
|
8
|
+
static sum<T extends IPoint>(...ps: T[]): T;
|
|
6
9
|
static scale<T extends IPoint>(p: T, scale: number): T;
|
|
7
10
|
static dif<T extends IPoint>(p1: T, p2: T): T;
|
|
8
11
|
static abs<T extends IPoint>(p: T): T;
|
|
9
12
|
static dotProduct<T extends IPoint>(p1: T, p2: T): number;
|
|
13
|
+
/**
|
|
14
|
+
* Векторное произведение.
|
|
15
|
+
* @returns вектор, перпендикулярный плоскости, образованной двумя переданными векторами.
|
|
16
|
+
* Модуль вектора численно равен площади параллелорамма, построенного на переданных векторах.
|
|
17
|
+
* На этом факте формула и построена.
|
|
18
|
+
*/
|
|
10
19
|
static crossProduct(a: IPoint3, b: IPoint3): IPoint3;
|
|
11
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Смешанное произведение векторов.
|
|
22
|
+
* Скалярное произведение вектора dotFactor на векторное произведение векторов
|
|
23
|
+
* crossFactorA и crossFactorB
|
|
24
|
+
*
|
|
25
|
+
* @return скаляр, равный объёму ориентированного параллелограмма,
|
|
26
|
+
* построенного на переданных векторах
|
|
27
|
+
*/
|
|
28
|
+
static tripleProduct(crossFactorA: IPoint3, crossFactorB: IPoint3, dotFactor: IPoint3): number;
|
|
29
|
+
/**
|
|
30
|
+
* Нормаль к поверхности, образованной тремя переданными точками
|
|
31
|
+
* @returns вектор
|
|
32
|
+
*/
|
|
12
33
|
static normal(p1: IPoint3, p2: IPoint3, p3: IPoint3): IPoint3;
|
|
13
34
|
}
|
|
14
|
-
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { IPoint2 } from "./
|
|
2
|
-
import { type IMatrix2d } from "../index.
|
|
1
|
+
import type { IPoint2 } from "./point.ts";
|
|
2
|
+
import { type IMatrix2d } from "../matrices/index.ts";
|
|
3
3
|
export declare class StraightLine {
|
|
4
4
|
p1: IPoint2;
|
|
5
5
|
p2: IPoint2;
|
|
6
6
|
constructor(p1: IPoint2, p2: IPoint2);
|
|
7
7
|
transform(matrix: IMatrix2d, transformThis?: boolean): StraightLine;
|
|
8
8
|
}
|
|
9
|
-
//# sourceMappingURL=straight-line.d.ts.map
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
export * from './angle.
|
|
2
|
-
export * from './matrices/
|
|
3
|
-
export * from './utils.
|
|
4
|
-
export * from './colors/index.
|
|
5
|
-
export * from './figures/index.
|
|
6
|
-
export * from './algorithm/index.
|
|
7
|
-
export * from './matrices/index.js';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './angle.ts';
|
|
2
|
+
export * from './matrices/index.ts';
|
|
3
|
+
export * from './utils.ts';
|
|
4
|
+
export * from './colors/index.ts';
|
|
5
|
+
export * from './figures/index.ts';
|
|
6
|
+
export * from './algorithm/index.ts';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export * from './matrix2d.
|
|
2
|
-
export * from './matrix3d.
|
|
3
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export * from './matrix2d.ts';
|
|
2
|
+
export * from './matrix3d.ts';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { IPoint2 } from "../figures/index.ts";
|
|
2
|
+
import { IFixedLengthArray } from "../type.utils.ts";
|
|
3
|
+
import { AngleUnits } from "../angle.ts";
|
|
3
4
|
export type IMatrix2d = IFixedLengthArray<6, number>;
|
|
4
5
|
export declare const identityMatrix2d: IMatrix2d;
|
|
5
6
|
export declare function getIdentityMatrix(): IMatrix2d;
|
|
@@ -26,4 +27,3 @@ export declare class Matrix2d {
|
|
|
26
27
|
private static adjoints;
|
|
27
28
|
private static minors;
|
|
28
29
|
}
|
|
29
|
-
//# sourceMappingURL=matrix2d.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { IFixedLengthArray, INonEmptyArray } from "../type.utils.ts";
|
|
2
|
+
import { IPoint3 } from "../figures/index.ts";
|
|
3
|
+
import { AngleUnits } from "../angle.ts";
|
|
3
4
|
export type IMatrix3d = IFixedLengthArray<12, number>;
|
|
4
5
|
export declare const identityMatrix3d: IMatrix3d;
|
|
5
6
|
export declare class Matrix3d {
|
|
@@ -29,4 +30,3 @@ export declare class Matrix3d {
|
|
|
29
30
|
private static adjoints;
|
|
30
31
|
private static minors;
|
|
31
32
|
}
|
|
32
|
-
//# sourceMappingURL=matrix3d.d.ts.map
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Non empty array of T
|
|
3
|
+
*/
|
|
1
4
|
export type INonEmptyArray<T = any> = [T, ...T[]];
|
|
2
5
|
type IFixedLengthArrayUtil<TLength extends number, TItem extends any, TArray extends Array<TItem>> = TArray['length'] extends TLength ? TArray : IFixedLengthArrayUtil<TLength, TItem, [TItem, ...TArray]>;
|
|
6
|
+
/**
|
|
7
|
+
* Array of T of fixed length
|
|
8
|
+
*/
|
|
3
9
|
export type IFixedLengthArray<TLength extends number, TItem> = number extends TLength ? never : TLength extends number ? IFixedLengthArrayUtil<TLength, TItem, [TItem]> : never;
|
|
4
10
|
export declare function validateType(value: never): never;
|
|
5
11
|
export {};
|
|
6
|
-
//# sourceMappingURL=type.utils.d.ts.map
|
|
@@ -3,4 +3,3 @@ export declare function toPositive(value: number, range: number): number;
|
|
|
3
3
|
export declare function isCorrectNumber(value: any): boolean;
|
|
4
4
|
export declare function normalize(value: number, top: number, bottom?: number): number;
|
|
5
5
|
export declare function denormalize(value: number, top: number, bottom?: number): number;
|
|
6
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
2
|
+
"name": "@fbltd/math",
|
|
3
|
+
"version": "1.0.36",
|
|
4
|
+
"description": "Math and geometry utilities",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "dist/bin/index.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"require": "./dist/bin/index.js",
|
|
12
|
+
"import": "./dist/bin/index.js",
|
|
13
|
+
"types": "./dist/types/index.d.ts"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.ms"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"start": "node_modules/.bin/tsc --watch --noEmit",
|
|
22
|
+
"clean": "rm -r dist || echo ''",
|
|
23
|
+
"build": "node_modules/.bin/tsc",
|
|
24
|
+
"deploy": "npm run clean && npm run build && npm run test && npm version patch && git push && npm publish && npm run clean",
|
|
25
|
+
"test": "node --expose-gc node_modules/.bin/jest --config=./__tests__/jest.config.cjs"
|
|
26
|
+
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/GlennMiller1991/math.git"
|
|
30
|
+
},
|
|
31
|
+
"author": "",
|
|
32
|
+
"license": "ISC",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/GlennMiller1991/math/issues"
|
|
35
|
+
},
|
|
36
|
+
"homepage": "https://github.com/GlennMiller1991/math#readme",
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@types/jest": "^29.5.13",
|
|
42
|
+
"@types/node": "^22.7.4",
|
|
43
|
+
"jest": "^29.7.0",
|
|
44
|
+
"ts-jest": "^29.4.0",
|
|
45
|
+
"typescript": "5.x.x"
|
|
46
|
+
}
|
|
46
47
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/algorithm/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linear-interpolation.d.ts","sourceRoot":"","sources":["../../../../src/algorithm/linear-interpolation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,qBAAa,mBAAmB;IAE5B,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,CAAC,aAAa,CAAC;IAmBrF,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM;CAItF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"angle.d.ts","sourceRoot":"","sources":["../../../src/angle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,oBAAY,UAAU;IAClB,GAAG,IAAI;IACP,GAAG,IAAI;IACP,IAAI,IAAI;CACX;AAOD,qBAAa,KAAK;IAId,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,UAAO,EAAE,KAAK,GAAE,UAA2B;IAWnF,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B;IAc7D,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B;IAc9D,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B;IAc7D,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAkBjD,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAoBhD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAK5C,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAIhC;IAED,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAIjC;CAGJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/colors/color.ts"],"names":[],"mappings":"AAGA,qBAAa,KAAK;IACF,OAAO,CAAC,IAAI;IAAU,OAAO,CAAC,MAAM;IAAU,OAAO,CAAC,KAAK;IAAU,OAAO,CAAC,MAAM;gBAA3E,IAAI,EAAE,MAAM,EAAU,MAAM,EAAE,MAAM,EAAU,KAAK,EAAE,MAAM,EAAU,MAAM,SAAM;IAOrG,IAAI,GAAG,CAAC,KAAK,EAAE,MAAM,EAEpB;IAED,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EA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,eAAe,CAAC,KAAK,EAAE,KAAK;IAgC5B,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAOrC,QAAQ,CAAC,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,OAAO;IAYvD,KAAK;CAYR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/colors/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,UAE3C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,UAE7C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../../src/figures/circle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAEvD,qBAAa,MAAM;IACI,MAAM,EAAE,OAAO;IAAS,CAAC,EAAE,MAAM;gBAAjC,MAAM,EAAE,OAAO,EAAS,CAAC,EAAE,MAAM;IAIpD,SAAS,CAAC,MAAM,EAAE,SAAS;CAG9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/figures/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../src/figures/point.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GA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Aa,CAAA;AAEtD,qBAAa,YAAY;IACF,EAAE,EAAE,OAAO;IAAS,EAAE,EAAE,OAAO;gBAA/B,EAAE,EAAE,OAAO,EAAS,EAAE,EAAE,OAAO;IAIlD,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,UAAQ;CAMrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/matrices/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"matrix2d.d.ts","sourceRoot":"","sources":["../../../../src/matrices/matrix2d.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAiB,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAA;AAEpD,eAAO,MAAM,gBAAgB,EAAE,SAA0D,CAAC;AAE1F,wBAAgB,iBAAiB,IAAI,SAAS,CAE7C;AAED,qBAAa,QAAQ;IAEjB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE;IAe3D,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,OAA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AC,KAAK,EAAE,KAAK,GAAG,KAAK,CAEhD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,GAAE,MAAa,WAEvF;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAGtD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,WAOzC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAI,UAE/D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAI,UAEjE"}
|