calculation of canvas position based on the cursor position and expected rotation
This commit is contained in:
Nikola Petrov
2024-04-01 22:56:57 +02:00
parent a29393bc18
commit 2b2dfe751e
4 changed files with 7 additions and 31 deletions

View File

@@ -16,7 +16,6 @@ private:
int pos = 0;
int screenWidth, screenHeight;
std::vector<Canvas> canvases;
Vector2 center;
float rotation = 0.0f;
Rectangle destB;
Rectangle destA;

View File

@@ -1,5 +1,4 @@
#include "raylib.h"
Color ColorLerp(Color c1, Color c2, float amount);
Vector2 calculateVector(float rotation, float offSet, float len);
Rectangle calculateRotatedRectangle(Vector2 center, float rotation, float width, float height);
Vector2 calculateVector(float rotation, float offSet, float len);