Merge pull request #31 from hundredrabbits/origami
Cleaned up the output a bit.
This commit is contained in:
commit
aa87b3514d
@ -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)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user