New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vertexvis/geometry

Package Overview
Dependencies
Maintainers
4
Versions
635
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vertexvis/geometry - npm Package Compare versions

Comparing version 0.21.0-testing.5 to 0.21.0-testing.6

6

dist/angle.d.ts

@@ -21,6 +21,10 @@ import * as Point from './point';

/**
* Normalizes the given angle, in degrees, to a number between 0 and 359.
* Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
*/
export declare function normalize(degrees: Angle): Angle;
/**
* Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
*/
export declare function normalizeRadians(radians: Angle): Angle;
/**
* Converts the given radians to degrees.

@@ -27,0 +31,0 @@ */

@@ -21,6 +21,10 @@ import * as Point from './point';

/**
* Normalizes the given angle, in degrees, to a number between 0 and 359.
* Normalizes the given angle, in degrees, to a number greater than or equal to 0 and less than 360.
*/
export declare function normalize(degrees: Angle): Angle;
/**
* Normalizes the given angle, in radians, to a number greater than or equal to 0 and less than 2 PI.
*/
export declare function normalizeRadians(radians: Angle): Angle;
/**
* Converts the given radians to degrees.

@@ -27,0 +31,0 @@ */

2

dist/cdn/bundle.esm.min.js

@@ -1,2 +0,2 @@

function t(t,n,r){return Math.max(n,Math.min(r,t))}function n(n,r,e){return(e=t(e,0,1))*(r-n)+n}function r(t,n){return void 0===t&&(t=0),void 0===n&&(n=0),{x:t,y:n}}function e(t,n){return{x:t.x-n.x,y:t.y-n.y}}function a(t,n){return{x:t.x+n.x,y:t.y+n.y}}function i(t,n){return t.x===n.x&&t.y===n.y}function o(t,n){return{x:t.x*n,y:t.y*n}}function u(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function c(t){var n=u(t);return 0===n?r(0,0):o(t,1/n)}function h(t,n){return c(e(n,t))}var f=Object.freeze({__proto__:null,create:r,polar:function(t,n){return r(Math.cos(n)*t,Math.sin(n)*t)},distance:function(t,n){var r=e(t,n);return Math.sqrt(r.x*r.x+r.y*r.y)},subtract:e,add:a,isEqual:i,lerp:function(t,r,e){return{x:n(t.x,r.x,e),y:n(t.y,r.y,e)}},negate:function(t){return r(-t.x,-t.y)},scale:function(t,n,r){return{x:t.x*n,y:t.y*r}},scaleProportional:o,magnitude:u,normalizeVector:c,normalDirectionVector:h,orthogonalVector:function(t,n){var e=h(t,n);return 0===e.x||0===e.y?r(-1*e.y,e.x):Math.abs(e.x)>Math.abs(e.y)?c(r(1-Math.pow(e.x,2),-1*e.x*e.y)):c(r(-1*e.x*e.y,1-Math.pow(e.y,2)))},fromJson:function(t){var n=JSON.parse(t);return Array.isArray(n)?r(n[0],n[1]):r(n.x,n.y)}});function y(t){return(t+3600)%360}function x(t){return t*(180/Math.PI)}function m(t){return t*(Math.PI/180)}var s=Object.freeze({__proto__:null,fromPoints:function(t,n){var r=e(n,t);return Math.atan2(r.y,r.x)},fromPointsInDegrees:function(t,n){var r=e(n,t);return y(x(Math.atan2(r.y,r.x))-270)},normalize:y,toDegrees:x,toRadians:m}),d=function(){return d=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);return t},d.apply(this,arguments)};
function t(t,n,r){return Math.max(n,Math.min(r,t))}function n(n,r,e){return(e=t(e,0,1))*(r-n)+n}function r(t,n){return void 0===t&&(t=0),void 0===n&&(n=0),{x:t,y:n}}function e(t,n){return{x:t.x-n.x,y:t.y-n.y}}function a(t,n){return{x:t.x+n.x,y:t.y+n.y}}function i(t,n){return t.x===n.x&&t.y===n.y}function o(t,n){return{x:t.x*n,y:t.y*n}}function u(t){return Math.sqrt(t.x*t.x+t.y*t.y)}function c(t){var n=u(t);return 0===n?r(0,0):o(t,1/n)}function h(t,n){return c(e(n,t))}var f=Object.freeze({__proto__:null,create:r,polar:function(t,n){return r(Math.cos(n)*t,Math.sin(n)*t)},distance:function(t,n){var r=e(t,n);return Math.sqrt(r.x*r.x+r.y*r.y)},subtract:e,add:a,isEqual:i,lerp:function(t,r,e){return{x:n(t.x,r.x,e),y:n(t.y,r.y,e)}},negate:function(t){return r(-t.x,-t.y)},scale:function(t,n,r){return{x:t.x*n,y:t.y*r}},scaleProportional:o,magnitude:u,normalizeVector:c,normalDirectionVector:h,orthogonalVector:function(t,n){var e=h(t,n);return 0===e.x||0===e.y?r(-1*e.y,e.x):Math.abs(e.x)>Math.abs(e.y)?c(r(1-Math.pow(e.x,2),-1*e.x*e.y)):c(r(-1*e.x*e.y,1-Math.pow(e.y,2)))},fromJson:function(t){var n=JSON.parse(t);return Array.isArray(n)?r(n[0],n[1]):r(n.x,n.y)}});function y(t){return(t+3600)%360}function x(t){return t*(180/Math.PI)}function m(t){return t*(Math.PI/180)}var s=Object.freeze({__proto__:null,fromPoints:function(t,n){var r=e(n,t);return Math.atan2(r.y,r.x)},fromPointsInDegrees:function(t,n){var r=e(n,t);return y(x(Math.atan2(r.y,r.x))-270)},normalize:y,normalizeRadians:function(t){return m(y(x(t)))},toDegrees:x,toRadians:m}),d=function(){return d=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var a in n=arguments[r])Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);return t},d.apply(this,arguments)};
/*! *****************************************************************************

@@ -3,0 +3,0 @@ Copyright (c) Microsoft Corporation.

{
"name": "@vertexvis/geometry",
"version": "0.21.0-testing.5",
"version": "0.21.0-testing.6",
"description": "Library for 2D and 3D geometric types.",

@@ -43,3 +43,3 @@ "license": "MIT",

"@vertexvis/jest-config-vertexvis": "^0.5.4",
"@vertexwebsdk/build": "0.21.0-testing.5",
"@vertexwebsdk/build": "0.21.0-testing.6",
"eslint": "^8.17.0",

@@ -55,3 +55,3 @@ "jest": "^27.5.1",

},
"gitHead": "930fe25423061bb92cebfd83f9f720ce66950cb0"
"gitHead": "c4eaa22c7bba39ee7c2c09319b31dacf57b5ae0e"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc