|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications | ![]() |
[Prev: Object] [Home] [Next: Rect]
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
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]
Copyright © 2001-2006 Trolltech | Trademarks | QSA version 1.1.5
|