@vertexvis/geometry 0.21.0-testing.5 → 0.21.0
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/README.md +1 -1
- 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/README.md
CHANGED
|
@@ -24,7 +24,7 @@ viewer.
|
|
|
24
24
|
</head>
|
|
25
25
|
<body>
|
|
26
26
|
<script type="module">
|
|
27
|
-
import { Vector3 } from 'https://unpkg.com/@vertexvis/geometry@0.
|
|
27
|
+
import { Vector3 } from 'https://unpkg.com/@vertexvis/geometry@0.21.0/dist/cdn/bundle.esm.js';
|
|
28
28
|
|
|
29
29
|
async function main() {
|
|
30
30
|
const viewer = document.querySelector('#viewer');
|
package/dist/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/bundle.cjs.js
CHANGED
|
@@ -219,11 +219,17 @@ function fromPointsInDegrees(a, b) {
|
|
|
219
219
|
return normalize$2(toDegrees(theta) - 270);
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
-
* Normalizes the given angle, in degrees, to a number
|
|
222
|
+
* Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
|
|
223
223
|
*/
|
|
224
224
|
function normalize$2(degrees) {
|
|
225
225
|
return (degrees + 3600) % 360;
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
|
|
229
|
+
*/
|
|
230
|
+
function normalizeRadians(radians) {
|
|
231
|
+
return toRadians(normalize$2(toDegrees(radians)));
|
|
232
|
+
}
|
|
227
233
|
/**
|
|
228
234
|
* Converts the given radians to degrees.
|
|
229
235
|
*/
|
|
@@ -242,6 +248,7 @@ var angle = /*#__PURE__*/Object.freeze({
|
|
|
242
248
|
fromPoints: fromPoints$1,
|
|
243
249
|
fromPointsInDegrees: fromPointsInDegrees,
|
|
244
250
|
normalize: normalize$2,
|
|
251
|
+
normalizeRadians: normalizeRadians,
|
|
245
252
|
toDegrees: toDegrees,
|
|
246
253
|
toRadians: toRadians
|
|
247
254
|
});
|