Class Index | File Index

Classes


Class Point

Describes an x and y coordinate.
Defined in: Point.js.

// Creating a point from a JSON object
var myPoint = Point({ x: 10, y: 10 });
// creating a point from another Point object, or a Bounds object.
var myPoint2 = Point(myPoint);
var bounds = Bounds(myPoint2);
var myPoint3 = Point(bounds);
Class Summary
Constructor Attributes Constructor Name and Description
 
Point(_details)
Field Summary
Field Attributes Field Name and Description
 
 
x
 
y
Method Summary
Method Attributes Method Name and Description
 
extend(_child)
This extends the provided child function with this instance.
Class Detail
Point(_details)
Parameters:
{Point|Bounds|Object} _details
Another Point object, or Bounds object. Can also be created with a JSON object with these attributes:
Property Required Default
x yes
y yes
Field Detail
details

x

y
Method Detail
extend(_child)
This extends the provided child function with this instance.
Parameters:
_child

Documentation generated by JsDoc Toolkit 2.3.0 on Fri Oct 30 2009 09:09:10 GMT-0700 (PDT)