Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorldPosData

Hierarchy

  • Point
    • WorldPosData

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • 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 WorldPosData

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
  • Returns the distance between this point and the other point.

    Parameters

    • point: Point

      The other point.

    Returns number

read

squareDistanceTo

  • squareDistanceTo(point: Point): number
  • Returns the square distance between this point and the other point.

    Parameters

    • point: Point

      The other point.

    Returns number

write

Generated using TypeDoc