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>

Available on Point<double>, provided by the DoublePointExtension extension

Add other to this Point.
scaleBy(Point<num> other) Point<double>

Available on Point<double>, provided by the DoublePointExtension extension

Create a new Point where x and y values are scaled by the respective values in other.
subtract(Point<num> other) Point<double>

Available on Point<double>, provided by the DoublePointExtension extension

Subtract other from this Point.