Skip to content

Path2d and Shape2d additions: basic shapes and commands.#2325

Merged
andrewfb merged 5 commits intocinder:masterfrom
paulhoux:path2d-shape2d-additions
Feb 1, 2024
Merged

Path2d and Shape2d additions: basic shapes and commands.#2325
andrewfb merged 5 commits intocinder:masterfrom
paulhoux:path2d-shape2d-additions

Conversation

@paulhoux
Copy link
Collaborator

@paulhoux paulhoux commented Jan 2, 2024

In preparation of path rendering, these additions will make it much easier to define paths and shapes from code.

@paulhoux paulhoux requested a review from andrewfb January 2, 2024 13:05
@paulhoux paulhoux self-assigned this Jan 2, 2024
@andrewfb andrewfb merged commit a70e977 into cinder:master Feb 1, 2024
paulhoux added a commit to Unispace365/Cinder that referenced this pull request Feb 28, 2025
* Added convenience functions to Path2d and Shape2d, allowing easy creation of several shapes and smooth curves.

* Added relative functions to Path2d and refactored things.

* Closed the rounded rectangle in Path2d.

* Tweaked the Path2d::spiral to get rid of a wobble.

* Path2d::angleHelper() is now an anonymous namespace function.

---------

Co-authored-by: paulhoux <paulhoux@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants