Options
Menu

Interface IPoint

Hierarchy

  • IPoint

Implemented by

Index

Properties

Methods

Properties

x

x: number

X position.

y

y: number

Y position.

Methods

clone

  • Returns a clone of the Point instance.

    Returns IPoint

    a clone of the Point instance.

copy

  • Copies all properties from the specified point to this point.

    Parameters

    Returns IPoint

    This point. Useful for chaining method calls.

setValues

  • setValues(x?: undefined | number, y?: undefined | number): IPoint
  • Sets the specified values on this instance.

    Parameters

    • Optional x: undefined | number

      X position.

    • Optional y: undefined | number

      Y position.

    Returns IPoint

    This instance. Useful for chaining method calls.

toString

  • toString(): string
  • Returns a string representation of this object.

    Returns string

    a string representation of the instance.