Scratch for Java

Polygon::addPoint()

Adds a point to the polygon.

Syntax

Java

.addPoint(x, y)

Parameters

Name Data Type Description
x double the x-coordinate
y double the y-coordinate

Return

void

addPoint()