diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-10-05 06:35:09 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-10-05 06:35:09 -0400 |
commit | d781d5a3c1ec6872361db2a15786dfc0db9780f3 (patch) | |
tree | 7e355a89bb0062cdd7692f3dae820a5e467aba9e /themes/mathlib.cpp | |
parent | 9d33d175b5cd564e77bda07fcbce252477f7c40f (diff) |
Working tree render, now just have to do the leaves
Diffstat (limited to 'themes/mathlib.cpp')
-rw-r--r-- | themes/mathlib.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/themes/mathlib.cpp b/themes/mathlib.cpp index 6fa4266..7efbb24 100644 --- a/themes/mathlib.cpp +++ b/themes/mathlib.cpp @@ -12,6 +12,13 @@ // *************************************** // Vector2 +Vector2::Vector2() { } + +Vector2::Vector2(float inX, float inY) { + x = inX; + y = inY; +} + Vector2 getRandomNormalVector2() { Vector2 retval = { static_cast<float>(rand()) / static_cast<float>(RAND_MAX), |