User Tools

Site Tools


Point

Script wrapper for QPoint.

More...

Inherits :

Properties

DAZ Script
Numberx
Numbery

Static Methods

DAZ Script
PointcursorPos ()

Constructors

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

Detailed Description

This is the script counterpart to the QPoint type used in the C++ SDK. A Point object is a two dimensional representation of a x (horizontal) and y (vertical) position.

Attention:

  • Inheritance will change to Object in a pending update.

Properties


Number : x

Holds the point's x position.

Example:

var pntTemp = new Point( 10, 20 );
print( oPoint.x ); //10

Number : y

Holds the point's y position.

Example:

var pntTemp = new Point( 10, 20 );
print( oPoint.y ); //20

Static Methods


Point : cursorPos()

Return Value:

  • The position of the cursor in global screen coordinates.

Example:

var pntCursor = (new Point).cursorPos();

Since:

  • 4.11.0.35

Constructors


Point()

Default constructor.

Example:

var pntTemp = new Point();

Point( Point pnt )

Parameter(s):

  • pnt - The point to copy.

Example:

var pntTemp1 = new Point( 10, 20 );
var pntTemp2 = new Point( oPoint );

Point( Number x, Number y )

Parameter(s):

  • x - The x coordinate for the point.
  • y - The y coordinate for the point.

Example:

var pntTemp = new Point( 10, 20 );