Zimlet JavaScript API Reference - DwtPoint

Class DwtPoint


This class represents a point. A point has an x-coordinate and y-coordinate.

Defined in: DwtPoint.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
DwtPoint(x, y)
Creates a point.
Field Summary
Field Attributes Field Name and Description
 
x
The x-coordinate.
 
y
The y-coordinate.
Method Summary
Method Attributes Method Name and Description
 
set(x, y)
Sets the values of a point
 
Returns a string representation of the object.
Class Detail
DwtPoint(x, y)
Creates a point.
Author: Ross Dargahi.
Parameters:
{number} x
the x coordinate
{number} y
the y coordinate
Field Detail
{number} x
The x-coordinate.

{number} y
The y-coordinate.
Method Detail
set(x, y)
Sets the values of a point
Parameters:
{number} x
the x coordinate
{number} y
the y coordinate

{string} toString()
Returns a string representation of the object.
Returns:
{string} a string representation of the object

Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:26 GMT-0400 (EDT)