@vertexvis/geometry 0.21.0-testing.4 → 0.21.0-testing.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/dist/angle.d.ts +5 -1
- package/dist/bundle.cjs.js +8 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +8 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/cdn/angle.d.ts +5 -1
- package/dist/cdn/bundle.esm.js +8 -1
- package/dist/cdn/bundle.esm.js.map +1 -1
- package/dist/cdn/bundle.esm.min.js +1 -1
- package/dist/cdn/bundle.esm.min.js.map +1 -1
- package/package.json +3 -3
package/dist/cdn/angle.d.ts
CHANGED
|
@@ -18,9 +18,13 @@ export declare function fromPoints(a: Point.Point, b: Point.Point): Angle;
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function fromPointsInDegrees(a: Point.Point, b: Point.Point): Angle;
|
|
20
20
|
/**
|
|
21
|
-
* Normalizes the given angle, in degrees, to a number
|
|
21
|
+
* Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
|
|
22
22
|
*/
|
|
23
23
|
export declare function normalize(degrees: Angle): Angle;
|
|
24
|
+
/**
|
|
25
|
+
* Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
|
|
26
|
+
*/
|
|
27
|
+
export declare function normalizeRadians(radians: Angle): Angle;
|
|
24
28
|
/**
|
|
25
29
|
* Converts the given radians to degrees.
|
|
26
30
|
*/
|
package/dist/cdn/bundle.esm.js
CHANGED
|
@@ -213,11 +213,17 @@ function fromPointsInDegrees(a, b) {
|
|
|
213
213
|
return normalize$2(toDegrees(theta) - 270);
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
|
-
* Normalizes the given angle, in degrees, to a number
|
|
216
|
+
* Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
|
|
217
217
|
*/
|
|
218
218
|
function normalize$2(degrees) {
|
|
219
219
|
return (degrees + 3600) % 360;
|
|
220
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
|
|
223
|
+
*/
|
|
224
|
+
function normalizeRadians(radians) {
|
|
225
|
+
return toRadians(normalize$2(toDegrees(radians)));
|
|
226
|
+
}
|
|
221
227
|
/**
|
|
222
228
|
* Converts the given radians to degrees.
|
|
223
229
|
*/
|
|
@@ -236,6 +242,7 @@ var angle = /*#__PURE__*/Object.freeze({
|
|
|
236
242
|
fromPoints: fromPoints$1,
|
|
237
243
|
fromPointsInDegrees: fromPointsInDegrees,
|
|
238
244
|
normalize: normalize$2,
|
|
245
|
+
normalizeRadians: normalizeRadians,
|
|
239
246
|
toDegrees: toDegrees,
|
|
240
247
|
toRadians: toRadians
|
|
241
248
|
});
|