Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kld-affine

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kld-affine - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

14

lib/Point2D.js

@@ -272,2 +272,16 @@ /**

/**
* transform
*
* @param {Matrix2D}
* @result {Point2D}
*/
Point2D.prototype.transform = function(matrix) {
return new Point2D(
matrix.a * this.x + matrix.c * this.y + matrix.e,
matrix.b * this.x + matrix.d * this.y + matrix.f
);
};
/**
* toString

@@ -274,0 +288,0 @@ *

@@ -211,2 +211,15 @@ /**

/**
* transform
*
* @param {Matrix2D}
* @returns {Vector2D}
*/
Vector2D.prototype.transform = function(matrix) {
return new Vector2D(
matrix.a * this.x + matrix.c * this.y,
matrix.b * this.x + matrix.d * this.y
);
};
/**
* equals

@@ -213,0 +226,0 @@ *

4

package.json
{
"name": "kld-affine",
"version": "0.0.4",
"description": "A collection of classes used in affine geometry",
"version": "0.0.5",
"description": "A collection of classes used with affine geometry",
"author": {

@@ -6,0 +6,0 @@ "name": "Kevin Lindsey",

kld-affine
==========
A collection of classes used in affine geometry. This currently consists of the following:
A collection of classes used for affine geometry. This currently consists of the following:

@@ -41,2 +41,3 @@ * Point2D

* max
* transform
* toString

@@ -67,2 +68,3 @@ * setXY - deprecated

* project
* transform
* equals

@@ -69,0 +71,0 @@ * toString

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