Point Class Reference
[ECMAScript/QtScript - Native Objects]

Qt Point type. More...

Inheritance diagram for Point:

Object List of all members.

Properties

Number x
Number y

Constructors

 Point (Point pnt)
 Point (Number x, Number y)
 Point ()

Detailed Description

Qt Point type.

This is the DAZ Script counterpart of the QPoint type used in the DAZ Studio SDK.


Constructor & Destructor Documentation

Point::Point (  ) 

Default constructor.

Example:
        var oPoint = new Point;

Point::Point ( Number  x,
Number  y 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
x The x coordinate for the point
y The y coordinate for the point
Example:
        var oPoint = new Point( 10, 20 );

Point::Point ( Point  pnt  ) 

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters:
pnt The point to copy
Example:
        var oPoint = new Point( 10, 20 );
        var oPoint2 = new Point( oPoint );


Member Data Documentation

Number Point::x

The point's x position

Example:
        var oPoint = new Point( 10, 20 );
        var nPnt = oPoint.x;
        // nPnt == 10

Number Point::y

The point's y position

Example:
        var oPoint = new Point( 10, 20 );
        var nPnt = oPoint.y;
        // nPnt == 20


Generated on Thu Sep 24 12:21:16 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.