Merge pull request #31 from hundredrabbits/origami

Cleaned up the output a bit.
This commit is contained in:
Лu Лinveгa 2018-04-16 22:59:00 +00:00 committed by GitHub
commit aa87b3514d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,8 +273,8 @@ function Tool()
{ {
angle = angle * Math.PI / 180.0; angle = angle * Math.PI / 180.0;
return { return {
x: Math.cos(angle) * (pointX-originX) - Math.sin(angle) * (pointY-originY) + originX, x: (Math.cos(angle) * (pointX-originX) - Math.sin(angle) * (pointY-originY) + originX).toFixed(1),
y: Math.sin(angle) * (pointX-originX) + Math.cos(angle) * (pointY-originY) + originY y: (Math.sin(angle) * (pointX-originX) + Math.cos(angle) * (pointY-originY) + originY).toFixed(1)
}; };
} }