mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Remove unnecessary .0 since numbers are all the same in JavaScript.
This commit is contained in:
parent
0d697403b5
commit
115ef45464
2 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ var Point = this.Point = Base.extend({
|
|||
}
|
||||
} else {
|
||||
var scale = length / this.getLength();
|
||||
if (scale == 0.0) {
|
||||
if (scale == 0) {
|
||||
// Calculate angle now, so it will be preserved even when
|
||||
// x and y are 0
|
||||
this.getAngle();
|
||||
|
|
|
@ -463,7 +463,7 @@ var Path = this.Path = PathItem.extend({
|
|||
// Decomposition and forward substitution.
|
||||
for (var i = 1; i < n; i++) {
|
||||
tmp[i] = 1 / b;
|
||||
b = (i < n - 1 ? 4.0 : 2.0) - tmp[i];
|
||||
b = (i < n - 1 ? 4 : 2) - tmp[i];
|
||||
x[i] = (rhs[i] - x[i - 1]) / b;
|
||||
}
|
||||
// Back-substitution.
|
||||
|
@ -718,7 +718,7 @@ var Path = this.Path = PathItem.extend({
|
|||
diff -= Math.PI * 2;
|
||||
|
||||
extent -= angle;
|
||||
if (extent <= 0.0)
|
||||
if (extent <= 0)
|
||||
extent += Math.PI * 2;
|
||||
|
||||
if (diff < 0) extent = Math.PI * 2 - extent;
|
||||
|
|
Loading…
Reference in a new issue