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

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

Point

The Point class provides an implementation of a two dimensional point.

The Point class provides three different constructors.

    var point = new Point( 20, 30 );
    var duplicate = new Point( point ); // 20, 30
    var zero = new Point();             // 0, 0
Point Properties
    var p = new Point( 100, 200 );
    System.println( "Point is: " + p.x + ", " + p.y );

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


Copyright © 2001-2006 TrolltechTrademarks
QSA version 1.1.5