Point
Syntax
Constructors
val point = Point()
- creates a point at 0,0
val point = Point(x, y)
- creates a point at x,y
Methods
val plotPoint = point.plot(angle, distance)
- returns a point at the angle and distance from the current point
val.copy = point.copy()
point.draw()
- draws the Point with the current stroke colour