Class Point

A point on a document.

Analogous to TSPoint.

Functions

Point.new (row, column) Create a new point.
Point.pack (row, column) Alias for new.

Methods

Point:unpack () Unpack the point.
Point:row () Get the row of the point.
Point:column () Get the column of the point.

Metamethods

Point:__eq (other) Check equality of two points by value.
Point:__lt (other) Check if a point occurs before another point.
Point:__le (other) Check if a point occurs before or is the same as another point.


Functions

Point.new (row, column)
Create a new point.

Parameters:

  • row integer
  • column integer

Returns:

    Point
Point.pack (row, column)
Alias for new.

Parameters:

  • row integer
  • column integer

Returns:

    Point

Methods

Point:unpack ()
Unpack the point.

Inverse of pack.

Returns:

  1. integer row
  2. integer column
Point:row ()
Get the row of the point.

Returns:

    integer
Point:column ()
Get the column of the point.

Returns:

    integer

Metamethods

Point:__eq (other)
Check equality of two points by value.

Parameters:

Returns:

    boolean
Point:__lt (other)
Check if a point occurs before another point.

Parameters:

Returns:

    boolean
Point:__le (other)
Check if a point occurs before or is the same as another point.

Parameters:

Returns:

    boolean
generated by LDoc 1.5.0 Last updated 2024-04-16 14:22:44