Class Index | File Index

Classes


Class TKPoint

The TKPoint provides a TuneKit data type to deal with points in 2D space and some utilities to work with them, such as figuring out the distance between two points.


Defined in: Utils.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
TKPoint(x, y)
Field Summary
Field Attributes Field Name and Description
 
x
The x coordinate.
 
y
The y coordinate.
Method Summary
Method Attributes Method Name and Description
 
Provides the distance between this point and another.
Class Detail
TKPoint(x, y)
Parameters:
{float} x
The x coordinate.
{float} y
The y coordinate.
Since:
TuneKit 1.0
Field Detail
{float} x
The x coordinate.

{float} y
The y coordinate.
Method Detail
{float} distanceToPoint(aPoint)
Provides the distance between this point and another.
Parameters:
{TKPoint} aPoint
The point to which we'd like to figure out the distance.
Returns:
{float} The distance between the receiver the provided point.

Documentation generated by JsDoc Toolkit 2.3.2 on Thu Nov 12 2009 16:54:54 GMT+0100 (CET)