CPoint:Ceil
The Ceil method replaces the x and y values of the CPoint with the next higher integer, or "ceiling" value. For example, x=1.3 becomes x=2, and x=-16.2 becomes x=-16.
P = CPoint:Ceil() P returned is the original CPoint object. This allows the Ceil method to be used as part of an operator expression, if desired. On failure, nil is returned. |
The following script creates a CPoint object and applies the Ceil method to its values.
|
-- create a CPoint object |
|
-- result: x=4.4, y=-12.7 |
|
-- compute the ceiling values |
|
-- result: x=5, y=-12 |
CPoint class, Floor, Round, CPoint Math Operators
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.