relative
The relative motion addon supplied Point.relative methods, to
Meta Data
| filepath_exists | True |
| path | relative |
| filepath | relative.js |
| clean_files | () |
-
ClassDeclarationclass
Addon
extends Noneclass comments:An Addon applies some core functionality on the polypoint mixin such as a constructor, and destroy methods.
VariableDeclarationPush a XY in a direction relative to the radians. const r = impartOnRads(a.radians, direction) For example - pointing _right_ and applying the _{1,0}_ direction (denoting forward) will push the point further right, applying _{0, 1}_ pushes the point _left_ relative to its direction. Or to rephase, imagine a engine on the back of the point - pushing _forward_.
The relative motion addon supplied
Point.relativemethods, toThe cosSin object is a simple helper for cos/sin of a value.