gameforge - v0.1.12
    Preparing search index...

    Class Point

    The Point object represents a location in a two-dimensional coordinate system, where x represents the position on the horizontal axis and y represents the position on the vertical axis

    PIXI

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    x y

    Methods

    Constructors

    • Creates a new Point

      Parameters

      • Optionalx: number

        position of the point on the x axis

      • Optionaly: number

        position of the point on the y axis

      Returns Point

    Properties

    x: number

    Position of the point on the x axis

    y: number

    Position of the point on the y axis

    Methods

    • Creates a clone of this point

      Returns Point

      A clone of this point

    • Copies x and y from the given point into this point

      Parameters

      Returns this

      The point instance itself

    • Copies this point's x and y into the given point (p).

      Type Parameters

      Parameters

      • p: T

        The point to copy to. Can be any of type that is or extends IPointData

      Returns T

      The point (p) with values updated

    • Accepts another point (p) and returns true if the given point is equal to this point

      Parameters

      Returns boolean

      Returns true if both x and y are equal

    • Sets the point to a new x and y position. If y is omitted, both x and y will be set to x.

      Parameters

      • Optionalx: number

        position of the point on the x axis

      • Optionaly: number

        position of the point on the y axis

      Returns this

      The point instance itself