Class Point

An immutable point in floating-point pixel space.

Constructors

Properties

x y

Methods

Constructors

  • Construct a point from an x and y coordinate.

    Parameters

    • x: number

      the x-coordinate of the point

    • y: number

      the y-coordinate of the point

    Returns Point

Properties

x: number

the x-coordinate of the point

y: number

the y-coordinate of the point

Methods

  • Parameters

    • that: Point

      point to compare this with

    Returns boolean

    true iff this and that represent the same point

  • Returns string

Generated using TypeDoc