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:
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 - (Point) Point Returns a new Point whose coordinates are the difference between PointA and PointB < 9.5
operator + operator + (Point) Point Returns a new Point whose coordinates are the sum of the corresponding coordinates of PointA and PointB < 9.5
Set Set(xVal, yVal) void Assign new X and Y coordinate values to the point < 9.5
Set Set(p2) void Copy the coordinates from another Point object < 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