IntegerPointExtension extension

This extension contains methods which, if defined on Point

Point

The methods in this extension only take Point

on

Methods

add(Point<int> other) Point<int>
Add other to this Point.
scaleBy(Point<int> other) Point<int>
Create a new Point where x and y values are scaled by the respective values in other.
subtract(Point<int> other) Point<int>
Subtract other from this Point.