new Point(x, y)
Creates a Point that can be used with the Plot and Graph objects.
Parameters:
Name | Type | Description |
---|---|---|
x |
number | The x value. |
y |
number | The y value. |
Properties:
Name | Type | Description |
---|---|---|
Point.add(x,y) |
method | Add x, subtract y. |
Point.getPoint(p5.Vector) |
method | Converts a p5.Vector into a Point object. |
Point.fixChoord() |
method | Inverts the y axis so that positive is up not down. Allows Points to be compatible with p5.js. |
Point.addPix(xoff,yoff,scalex,scaley) |
method | Convert choord to pixel position. |
Point.getDist(Point,Point) |
method | Takes in two Point objects and returns a new Point object whose x and y values are the respective x and y distances. |
- Source: