diff options
author | mattkae <mattkae@protonmail.com> | 2022-03-05 18:48:37 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-03-05 18:48:37 -0500 |
commit | 1db914466663a1e4d0d827b8b9bd18840d7742eb (patch) | |
tree | d43b24947c71e4ce18321cf86672e4d52ecb9a11 /themes/TreeShape.cpp | |
parent | dd573a9bad435f7f16dd26458c8f0129eb6e54fe (diff) |
Updating the mathlib
Diffstat (limited to 'themes/TreeShape.cpp')
-rw-r--r-- | themes/TreeShape.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/themes/TreeShape.cpp b/themes/TreeShape.cpp index 08170ea..1680c55 100644 --- a/themes/TreeShape.cpp +++ b/themes/TreeShape.cpp @@ -6,10 +6,10 @@ #include <ctime> void TreeBranchLoadData::fillVertices(Renderer2dVertex* vertices, int branchTier) { - bottomLeft = Vector2 { position.x - width / 2.f, position.y }.rotateAbout(rotation, position); - bottomRight = Vector2 { position.x + width / 2.f, position.y }.rotateAbout(rotation, position); - topLeft = (Vector2 { position.x - width / 2.f, position.y + height }).rotateAbout(rotation, position); - topRight = (Vector2 { position.x + width / 2.f, position.y + height }).rotateAbout(rotation, position); + bottomLeft = Vector2 { position.x - width / 2.f, position.y }.rotateAround(rotation, position); + bottomRight = Vector2 { position.x + width / 2.f, position.y }.rotateAround(rotation, position); + topLeft = (Vector2 { position.x - width / 2.f, position.y + height }).rotateAround(rotation, position); + topRight = (Vector2 { position.x + width / 2.f, position.y + height }).rotateAround(rotation, position); topMidpoint = topLeft + (topRight - topLeft) / 2.f; |