## Discuss Scratch

- Discussion Forums
- » Developing Scratch Extensions
- » 2D Vector Math

- TheMonsterOfTheDeep
- Scratcher

1000+ posts

### 2D Vector Math

I often find myself wishing I had the ability to use 2D vectors directly instead of creating a new variable for every single component.

Well, I finally got around to writing an extension that added 2D vector math directly into Scratch.

GitHub | ScratchX

My GitHub contains an example project that uses this extension to draw bezier curves, which serves to demonstrate the utility of this extension:

Well, I finally got around to writing an extension that added 2D vector math directly into Scratch.

GitHub | ScratchX

My GitHub contains an example project that uses this extension to draw bezier curves, which serves to demonstrate the utility of this extension:

my latest extension: 2d vector math

- TheUltimatum
- Scratcher

1000+ posts

### 2D Vector Math

Whoah… I've always been wanting this. I hated how many of my custom block definitions looked like this:

define doFun (x1) (y1) (x2) (y2) (x3) (y3) (x4) (y4) ::custom

stuff::#b8b8b8

bf97b44a7fbd33db070f6ade2b7dc549

you get a cookie

- Discussion Forums
- » Developing Scratch Extensions
- » 2D Vector Math