Class: Dot

Dot(x, y, width)

Class representing a dot.

Constructor

Create a dot.
Source:
es2015-classes.js, line 42

Parameters:

Name Type Description
x
number The x value.
y
number The y value.
width
number The width of the dot, in pixels.

Extends

Methods

getWidth() → {number}

Get the dot's width.
Source:
es2015-classes.js, line 57
Returns:
The dot's width, in pixels.
Type
number

getX() → {number}

Get the x value.
Overrides:
Point#getX
Source:
es2015-classes.js, line 16
Returns:
The x value.
Type
number

getY() → {number}

Get the y value.
Overrides:
Point#getY
Source:
es2015-classes.js, line 24
Returns:
The y value.
Type
number
THIS IS A DEMO: All content was generated with examples taken from the JSDoc page.