Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPoint

Hierarchy

  • IPoint

Implemented by

Index

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?: number, y?: number): IPoint
  • Sets the specified values on this instance.

    Parameters

    • Optional x: number

      X position.

    • Optional y: 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.

Generated using TypeDoc