new_point
The new_point function is a non-class version of the CPoint:new method which creates and returns a new CPoint object.
P = new_point() P = new_point( x0 ) P = new_point( x0, y0 ) P = new_point( CPoint_old ) P = new_point( CRect_old ) P = new_point( tbl )
|
The following script creates various CPoint objects.
|
-- create a CPoint object |
|
-- set the values for point members x and y |
|
-- create a CPoint object with intial values |
|
-- create a new rectangle object |
|
-- add the rectangle width and height to P1 and add 2 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.