CPoint:Set
The Set method assigns new values to the x and y members of the CPoint. This allows the CPoint values to be reset after the object is created, or you could use expressions to assign the x and y values directly.
P = CPoint:Set( x0 ) P = CPoint:Set( x0, y0 ) P = CPoint:Set( CPoint_old ) P = CPoint:Set( CRect_old ) P = CPoint:Set( tblSet )
|
The following script creates a CPoint object and resets its values using the Set method.
|
-- create a CPoint object |
|
-- result: x=4.4, y=-12.7 |
|
-- reset the values |
|
-- result: x=4, y=-6 |
|
-- create a rectable in the method call |
|
-- result: x=1, y=3 (apply width and height) |
CPoint class, CRect class, CPoint Math Operators
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.