File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 234234 #ifndef VEC3_H
235235 #define VEC3_H
236236
237+ #include < cmath>
237238 #include < iostream>
238239
240+ using std::sqrt;
241+
239242 class vec3 {
240243 public:
241244 vec3() : e{0,0,0} {}
11341137
11351138 using std::shared_ptr;
11361139 using std::make_shared;
1140+ using std::sqrt;
11371141
11381142 // Constants
11391143
Original file line number Diff line number Diff line change 1919
2020using std::shared_ptr;
2121using std::make_shared;
22+ using std::sqrt;
2223
2324// Constants
2425
Original file line number Diff line number Diff line change 1111// along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
1212// ==============================================================================================
1313
14+ #include < cmath>
1415#include < iostream>
1516
17+ using std::sqrt;
1618
1719class vec3 {
1820 public:
You can’t perform that action at this time.
0 commit comments