[Prev: Object] [Home] [Next: Rect]
The Point provides an implementation of a two dimensional point.
The Point class provides three different constructor types.
var point = new Point( 20, 30 ); var copy = new Point( point ); // 20, 30 var origo = new Point(); // 0, 0
The point class has two properties, x and y;
var p = new Point( 100, 200 ); System.println( "Point is: " + p.x + ", " + p.y );
[Prev: Object] [Home] [Next: Rect]