Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Point

A simple x-y coordinate.

Hierarchy

  • Point

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Point(x?: number, y?: number): Point
  • Creates a Point instance.

    Parameters

    • Optional x: number

      The x-coordinate, or 0 if unspecified.

    • Optional y: number

      The y-coordinate, or 0 if unspecified.

    Returns Point

Properties

x

x: number

y

y: number

Methods

equals

  • equals(other: Point): boolean
  • Returns whether this point is equal to another one.

    Parameters

    • other: Point

      The point to compare to, which may be null.

    Returns boolean

    Whether the two points are equal.

Generated using TypeDoc