From be5f1133bff5d4c551e2702211acb155d8819fd0 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 29 Mar 2021 22:25:29 +0200 Subject: BVH simple implementation --- src/vec3.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vec3.cpp') diff --git a/src/vec3.cpp b/src/vec3.cpp index afc4c97..8e27a98 100644 --- a/src/vec3.cpp +++ b/src/vec3.cpp @@ -5,6 +5,7 @@ vec3::vec3(): x(0.0), y(0.0), z(0.0) {} +vec3::vec3(float x): x(x), y(x), z(x) {} vec3::vec3(float x, float y, float z): x(x), y(y), z(z) {} vec3 vec3::operator-() const { -- cgit v1.3