Class Point

represents a point in a 2d space

Constructors

Properties

Methods

Constructors

Properties

type: string

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

  • return true if this point is equal to the given point

    Parameters

    • Rest...args: any[]

    Returns boolean

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

    Parameters

    • x: number = 0
    • y: number = 0

    Returns Point

    Reference to this object for method chaining