Interface IPoint

interface IPoint {
    x: number;
    y: number;
    clone(): IPoint;
    copy(IPoint): IPoint;
    setValues(x?, y?): IPoint;
    toString(): string;
}

Implemented by

Properties

x y

Methods

Properties

x: number

X position.

y: number

Y position.

Methods

  • Returns a clone of the Point instance.

    Returns IPoint

    a clone of the Point instance.

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

    Parameters

    Returns IPoint

    This point. Useful for chaining method calls.

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

  • Returns a string representation of this object.

    Returns string

    a string representation of the instance.