Prebuilt module for commit 677c073c84

This commit is contained in:
Paper.js Bot 2017-03-08 13:17:32 +00:00
parent 6ba2a18d35
commit 8d1e3868ab
6 changed files with 80 additions and 30 deletions

View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Mar 8 13:41:23 2017 +0100
* Date: Wed Mar 8 14:13:19 2017 +0100
*
***
*
@ -2552,9 +2552,12 @@ var Line = Base.extend({
},
getDistance: function(point) {
return Math.abs(Line.getSignedDistance(
this._px, this._py, this._vx, this._vy,
point.x, point.y, true));
return Math.abs(this.getSignedDistance(point));
},
getSignedDistance: function(point) {
return Line.getSignedDistance(this._px, this._py, this._vx, this._vy,
point.x, point.y, true);
},
isCollinear: function(line) {
@ -9084,7 +9087,7 @@ new function() {
extent += extent < 0 ? 360 : -360;
}
}
var epsilon = 1e-12,
var epsilon = 1e-7,
ext = abs(extent),
count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
inc = extent / count,

View file

@ -329,6 +329,47 @@
</div>
</div>
</div>
<div id="getsigneddistance-point" class="member">
<div class="member-link">
<a name="getsigneddistance-point" href="#getsigneddistance-point"><tt><b>getSignedDistance</b>(point)</tt></a>
</div>
<div class="member-description hidden">
<div class="member-text">
<ul class="member-list">
<h4>Parameters:</h4>
<li>
<tt>point:</tt>
<a href="../classes/Point.html"><tt>Point</tt></a>
</li>
</ul>
<ul class="member-list">
<h4>Returns:</h4>
<li>
<tt><tt>Number</tt></tt>
</li>
</ul>
</div>
</div>
</div>

13
dist/paper-core.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Mar 8 13:41:23 2017 +0100
* Date: Wed Mar 8 14:13:19 2017 +0100
*
***
*
@ -2552,9 +2552,12 @@ var Line = Base.extend({
},
getDistance: function(point) {
return Math.abs(Line.getSignedDistance(
this._px, this._py, this._vx, this._vy,
point.x, point.y, true));
return Math.abs(this.getSignedDistance(point));
},
getSignedDistance: function(point) {
return Line.getSignedDistance(this._px, this._py, this._vx, this._vy,
point.x, point.y, true);
},
isCollinear: function(line) {
@ -9084,7 +9087,7 @@ new function() {
extent += extent < 0 ? 360 : -360;
}
}
var epsilon = 1e-12,
var epsilon = 1e-7,
ext = abs(extent),
count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
inc = extent / count,

File diff suppressed because one or more lines are too long

13
dist/paper-full.js vendored
View file

@ -9,7 +9,7 @@
*
* All rights reserved.
*
* Date: Wed Mar 8 13:41:23 2017 +0100
* Date: Wed Mar 8 14:13:19 2017 +0100
*
***
*
@ -2552,9 +2552,12 @@ var Line = Base.extend({
},
getDistance: function(point) {
return Math.abs(Line.getSignedDistance(
this._px, this._py, this._vx, this._vy,
point.x, point.y, true));
return Math.abs(this.getSignedDistance(point));
},
getSignedDistance: function(point) {
return Line.getSignedDistance(this._px, this._py, this._vx, this._vy,
point.x, point.y, true);
},
isCollinear: function(line) {
@ -9084,7 +9087,7 @@ new function() {
extent += extent < 0 ? 360 : -360;
}
}
var epsilon = 1e-12,
var epsilon = 1e-7,
ext = abs(extent),
count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90),
inc = extent / count,

File diff suppressed because one or more lines are too long