Class Index | File Index

Classes


Class JXG.Coords

This is the Coordinates class. All members a coordinate has to provide are defined here.
Defined in: Coords.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
JXG.Coords(method, coordinates, renderer)
Constructs a new Coordinates object.
Field Summary
Field Attributes Field Name and Description
 
Stores the board the object is used on.
 
Stores coordinates for screen view as homogeneous coordinates.
 
Stores coordinates for user view as homogeneous coordinates.
Method Summary
Method Attributes Method Name and Description
 
distance(method, coordinates)
Calculate distance of one point to another.
 
setCoordinates(method, coordinates, optional)
Set coordinates by method
Class Detail
JXG.Coords(method, coordinates, renderer)
Constructs a new Coordinates object.
Parameters:
{int} method
The type of coordinates given by the user. Accepted values are COORDS_BY_SCREEN and COORDS_BY_USER.
{Array} coordinates
An array of affine coordinates.
{JXG.AbstractRenderer} renderer
A reference to a Renderer.
Field Detail
{JXG.Board} board
Stores the board the object is used on.

{Array} scrCoords
Stores coordinates for screen view as homogeneous coordinates.

{Array} usrCoords
Stores coordinates for user view as homogeneous coordinates.
Method Detail
distance(method, coordinates)
Calculate distance of one point to another.
Parameters:
{int} method
The type of coordinates used here. Possible values are JXG.COORDS_BY_USER and JXG.COORDS_BY_SCREEN.
{JXG.Coords} coordinates
The Coords object to which the distance is calculated.

setCoordinates(method, coordinates, optional)
Set coordinates by method
Parameters:
{int} method
The type of coordinates used here. Possible values are COORDS_BY_USER and COORDS_BY_SCREEN.
{Array} coordinates
An array of affine coordinates the Coords object is set to.
{boolean} optional
flag If true or null round the coordinates in usr2screen. This is used in smooth curve plotting. The IE needs rounded coordinates. Id doRound==false we have to round in updatePathString.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 25 2011 00:43:19 GMT-0000 (UTC)