|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

- x : Number; The x position of the point.

- y : Number; The y position of the point.

        var p = new Point( 100, 200 );
        System.println( "Point is: " + p.x + ", " + p.y );

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