mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 22:01:58 -05:00
Documentation: Point#equals
This commit is contained in:
parent
460101c55e
commit
f3e118ac9a
1 changed files with 8 additions and 2 deletions
|
@ -468,8 +468,14 @@ var Point = this.Point = Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the point has the same x and y values as the specified
|
* Checks whether the coordinates of the point are equal to that of the
|
||||||
* point.
|
* supplied point.
|
||||||
|
*
|
||||||
|
* @example
|
||||||
|
* var point = new Point(5, 10);
|
||||||
|
* console.log(point == new Point(5, 10)); // true
|
||||||
|
* console.log(point == new Point(1, 1)); // false
|
||||||
|
* console.log(point != new Point(1, 1)); // true
|
||||||
*
|
*
|
||||||
* @param {Point}
|
* @param {Point}
|
||||||
* @return {boolean}
|
* @return {boolean}
|
||||||
|
|
Loading…
Reference in a new issue