# A vec2D class for py5

**URL:** <https://discourse.processing.org/t/a-vec2d-class-for-py5/33363>\
**Category:** Gallery\
**Created:** [November 6, 2021, 1:52pm UTC](https://discourse.processing.org/t/a-vec2d-class-for-py5/33363 "2021-11-06T13:52:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [November 6, 2021, 1:52pm UTC](https://discourse.processing.org/t/a-vec2d-class-for-py5/33363/1 "2021-11-06T13:52:52Z")

</div>

@hx2A @tabreturn Recently I experimented with @villares python PVector class, which inspired me to experiment with a Vec2D class for py5 (in ruby-processing I prefer Vec2D and Vec3D classes over PVector) see my `py5-vec2d` project on [github](https://github.com/monkstone/py5-vec2d), which is still a work in progress. Here is the working wigglePShape I recently created (ideas for improvement welcome) running from atom.

 ![wiggle](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/9/99e0f42c4baee57b7c855fcc3476bda5739ef9ca.png)  
See my prototype [Vec2D class here](https://github.com/monkstone/py5-vec2d/blob/main/sketches/vector/vec2d.py), and the [Wiggler class here](https://github.com/monkstone/py5-vec2d/blob/main/sketches/wiggler/wiggler.py) (after processing.py version).
