added rotation matrix to the bizear curves

This commit is contained in:
2025-11-03 16:52:39 -08:00
parent 2daecbf7c0
commit 51c2ff25e6
3 changed files with 78 additions and 26 deletions

View File

@@ -24,13 +24,27 @@
typedef unsigned int branchId;
typedef struct {
double x;
double y;
} nomi_vec2;
typedef struct {
nomi_vec2 start;
nomi_vec2 c0;
nomi_vec2 c1;
nomi_vec2 end;
} nomi_curve;
// All of the different notes
typedef struct {
char* text; // This is the data that is in that branch
branchId children[MAX_CHILDREN]; // holds the branchIds of its children
void* parent; // points the the branches parent
char type; // holds the type as in if this struct is a branch or a trunk
struct tart_vec2 startPos; // the starting position of the branch
nomi_vec2 startPos; // the starting position of the branch
nomi_curve curve;
branchId id; // This holds the branch id.
} branch;