A JavaScript 2D/3D vector class with chainable methods for common vector operations based on Processing PVector class