-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcylinder.cc
21 lines (14 loc) · 832 Bytes
/
cylinder.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "cylinder.hh"
#include <utility> // move
namespace wt {
cylinder::cylinder(float min, float max, bool closed) noexcept : cylinder{{}, min, max, closed} {}
cylinder::cylinder(tform4 tform, float min, float max, bool closed) noexcept
: cylinder{std::move(tform), {}, min, max, closed} {}
cylinder::cylinder(tform4 tform, struct material material, float min, float max,
bool closed) noexcept
: cylinder{std::move(tform), std::move(material), true, min, max, closed} {}
cylinder::cylinder(tform4 tform, struct material material, bool cast_shadow, float min, float max,
bool closed) noexcept
: tform{std::move(tform)}, inv_tform{inverse(this->tform)}, material{std::move(material)},
cast_shadow{cast_shadow}, min{min}, max{max}, closed{closed} {}
} // namespace wt