Simplify
calculation of canvas position based on the cursor position and expected rotation
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
Reference in New Issue
Block a user