Options
All
  • Public
  • Public/Protected
  • All
Menu

A 2d point in space.

Hierarchy

  • Point

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Point(x?: number, y?: number): Point
  • Creates a new point at the origin or at the provided, x, y.

    Parameters

    • Optional x: number

      An x value for this point. Defaults to 0.

    • Optional y: number

      A y value for this point. Defaults to 0.

    Returns Point

Properties

x

x: number

The X value of this point.

y

y: number

The Y value of this point.

Methods

clone

distanceTo

  • distanceTo(point: Point): number

squareDistanceTo

  • squareDistanceTo(point: Point): number

Generated using TypeDoc