kld-affine
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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 @@ * |
{ | ||
"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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18388
763
89