melonjs
    Preparing search index...

    Class Point

    represents a point in a 2d space

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    type: "Point"

    the shape type (used internally)

    "Point"
    
    x: number

    the position of the point on the horizontal axis

    0
    
    y: number

    the position of the point on the vertical axis

    0
    

    Methods

    • set the Point x and y properties to the given values

      Parameters

      • x: number = 0

        horizontal coordinate

      • y: number = 0

        vertical coordinate

      Returns Point

      Reference to this object for method chaining