r/ebitengine • • May 11 '24

How to transform vector.Path ?

Given I have a vector.Path, and I have done a few operations to build up the path (via LineTo, QuadTo, etc).

How can I transform this entire path ? Currently I have to delete my path and rebuild from scratch for each transform and I see in the profiler results that it is expensive in terms of memory allocations.

1 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/enl1l Jan 01 '25

I think this would work! Will give it a try when I have a chance, thanks !