CPoint:new
The new method constructs a new instance of a CPoint object. You must call this method before using the class. Note that the object can also be created using new_point.
P = CPoint:new() P = CPoint:new( x0 ) P = CPoint:new( x0, y0 ) P = CPoint:new( CPoint_old ) P = CPoint:new( CRect_old ) P = CPoint:new( 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 |
CPoint class, delete, new_point
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.