DoublePointExtension extension

This extension contains methods which, if defined on Point

Point

Note that division methods (unscaleBy and the / operator) are defined on Point

on

Methods

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