|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles Qt Script for Applications

[Prev: Object] [Home] [Next: Rect]

Point

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
Point Properties

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]


Copyright © 2001-2003 TrolltechTrademarks
QSA version 1.0.0