From 1db914466663a1e4d0d827b8b9bd18840d7742eb Mon Sep 17 00:00:00 2001 From: mattkae Date: Sat, 5 Mar 2022 18:48:37 -0500 Subject: Updating the mathlib --- themes/TreeShape.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'themes/TreeShape.cpp') 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 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; -- cgit v1.2.1