Documentation: Point#equals

This commit is contained in:
Jonathan Puckey 2011-05-23 03:11:53 +02:00
parent 460101c55e
commit f3e118ac9a

View file

@ -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}