@eturnity/eturnity_maths
Advanced tools
Comparing version 6.28.0-EPDM-7478.1 to 6.28.0-EPDM-7478.2
{ | ||
"name": "@eturnity/eturnity_maths", | ||
"version": "6.28.0-EPDM-7478.1", | ||
"version": "6.28.0-EPDM-7478.2", | ||
"author": "Eturnity Team", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -0,1 +1,2 @@ | ||
import { substractVector } from "./vector" | ||
export function inverse2x2Matrix([a, b, c, d]) { | ||
@@ -53,2 +54,7 @@ //inverse matrix |a,c| | ||
return product | ||
} | ||
export function rotateTransformation(point,angle,center){ | ||
let rotationMatrix=[[Math.cos(angle),Math.sin(angle)],[-Math.sin(angle),Math.cos(angle)]] | ||
let k=multiplyMatrices(rotationMatrix,[point.x-center.x,point.y-center.y]) | ||
return {x:k[0]+center.x,y:k[1]+center.y} | ||
} |
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
97148
3025