Class OpenSeadragon.Point
- Defined in: openseadragon.js
Constructor Attributes | Constructor Name and Description |
---|---|
OpenSeadragon.Point(x, y)
A Point is really used as a 2-dimensional vector, equally useful for
representing a point on a plane, or the height and width of a plane
not requiring any other frame of reference.
|
Method Summary
Class Detail
OpenSeadragon.Point(x, y)
A Point is really used as a 2-dimensional vector, equally useful for
representing a point on a plane, or the height and width of a plane
not requiring any other frame of reference.
- Parameters:
- {Number} x Optional
- The vector component 'x'. Defaults to the origin at 0.
- {Number} y Optional
- The vector component 'y'. Defaults to the origin at 0.
Field Detail
{Number}
x
The vector component 'x'.
{Number}
y
The vector component 'y'.
Method Detail
-
{OpenSeadragon.Point} apply(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} distanceTo(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} divide(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} equals(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} minus(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} negate(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} plus(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} times(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components
-
{OpenSeadragon.Point} toString(point)Add another Point to this point and return a new Point.
- Parameters:
- {OpenSeadragon.Point} point
- The point to add vector components.
- Returns:
- {OpenSeadragon.Point} A new point representing the sum of the vector components