From d781d5a3c1ec6872361db2a15786dfc0db9780f3 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Tue, 5 Oct 2021 06:35:09 -0400 Subject: Working tree render, now just have to do the leaves --- themes/mathlib.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'themes/mathlib.cpp') 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(rand()) / static_cast(RAND_MAX), -- cgit v1.2.1