Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorldPosData

Hierarchy

  • 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

y

y: number

Methods

clone

distanceTo

  • distanceTo<T>(point: T): number
  • Returns the distance between this point and the other point.

    Type parameters

    Parameters

    • point: T

      The other point.

    Returns number

read

squareDistanceTo

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

    Type parameters

    Parameters

    • point: T

      The other point.

    Returns number

write

Generated using TypeDoc