![]() ![]() |
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()
|
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, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.