@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/bundle.esm.js
CHANGED
|
@@ -215,11 +215,17 @@ function fromPointsInDegrees(a, b) {
|
|
|
215
215
|
return normalize$2(toDegrees(theta) - 270);
|
|
216
216
|
}
|
|
217
217
|
/**
|
|
218
|
-
* Normalizes the given angle, in degrees, to a number
|
|
218
|
+
* Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
|
|
219
219
|
*/
|
|
220
220
|
function normalize$2(degrees) {
|
|
221
221
|
return (degrees + 3600) % 360;
|
|
222
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
|
|
225
|
+
*/
|
|
226
|
+
function normalizeRadians(radians) {
|
|
227
|
+
return toRadians(normalize$2(toDegrees(radians)));
|
|
228
|
+
}
|
|
223
229
|
/**
|
|
224
230
|
* Converts the given radians to degrees.
|
|
225
231
|
*/
|
|
@@ -238,6 +244,7 @@ var angle = /*#__PURE__*/Object.freeze({
|
|
|
238
244
|
fromPoints: fromPoints$1,
|
|
239
245
|
fromPointsInDegrees: fromPointsInDegrees,
|
|
240
246
|
normalize: normalize$2,
|
|
247
|
+
normalizeRadians: normalizeRadians,
|
|
241
248
|
toDegrees: toDegrees,
|
|
242
249
|
toRadians: toRadians
|
|
243
250
|
});
|