diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-03-29 22:25:29 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-03-29 22:25:29 +0200 |
| commit | be5f1133bff5d4c551e2702211acb155d8819fd0 (patch) | |
| tree | bfd575657188b3ceb3b70dd0225c740035c98e99 /src/vec3.cpp | |
| parent | bc1073a020c99ed89967a6b00a9eeb4ab2e160dc (diff) | |
BVH simple implementation
Diffstat (limited to 'src/vec3.cpp')
| -rw-r--r-- | src/vec3.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |
