mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Add comment about Point#isParallel not being very precise.
This commit is contained in:
parent
a7ec0ef269
commit
2d2fb400d9
1 changed files with 1 additions and 0 deletions
|
@ -335,6 +335,7 @@ var Point = this.Point = Base.extend({
|
||||||
* @return {@true if it is parallel}
|
* @return {@true if it is parallel}
|
||||||
*/
|
*/
|
||||||
isParallel: function(point) {
|
isParallel: function(point) {
|
||||||
|
// TODO: Tolerance seems rather high!
|
||||||
return Math.abs(this.x / point.x - this.y / point.y) < 0.00001;
|
return Math.abs(this.x / point.x - this.y / point.y) < 0.00001;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue