Class Point
Version added: before 9.5
The Point class is used to indicate a pixel location on the screen.
If necessary, instances of this class can be created by:
- Local variable:
- Global (see Script Structure about conventions for naming globals):
Notice LM_Point is not the same as a mesh point M_Point
If necessary, instances of this class can be created by:
- Local variable:
local pt = LM.Point:new_local()
- Global (see Script Structure about conventions for naming globals):
XX_pt = LM.Point:new()
Notice LM_Point is not the same as a mesh point M_Point
Methods of Point:
Name | Returns | Description | Ver |
operator‑ operator-(LM_Point) | Point | < 9.5 | |
operator+ operator+(LM_Point) | Point | < 9.5 | |
Set Set(xVal, yVal) | void | Set the value of a point | < 9.5 |
Set Set(p2) | void | Set the value of a point | < 9.5 |
Properties of Point:
Name | Type | Description | Ver |
x | int32 | The horizontal location of the pixel. | < 9.5 |
y | int32 | The vertical location of the pixel. | < 9.5 |