Class eniro.maps.Point
Defined in: Point.js.
Constructor Attributes | Constructor Name and Description |
---|---|
eniro.maps.Point(x, y)
Point holds an x/y value of an unspecified unit, often used for pixel
coordinates.
|
Method Attributes | Method Name and Description |
---|---|
equals(other)
Compare this instance with another instance.
|
|
getX()
Returns the x coordinate.
|
|
getY()
Returns the y coordinate.
|
Class Detail
eniro.maps.Point(x, y)
Point holds an x/y value of an unspecified unit, often used for pixel
coordinates.
Class is considered a value type.
- Parameters:
- {number} x
- The x value.
- {number} y
- The y value.
Method Detail
{boolean}
equals(other)
Compare this instance with another instance.
- Parameters:
- {eniro.maps.Point} other
- The instance to compare this instance to.
- Returns:
- {boolean} true If this instance is equal to the given one.
{number}
getX()
Returns the x coordinate.
- Returns:
- {number} The x coordinate.
{number}
getY()
Returns the y coordinate.
- Returns:
- {number} The y coordinate.