Ray Tracer Common Project
Image rendering program based on the ray tracing technique.
utils.hpp
1 
15 #pragma once
16 
17 #include <cstdint>
18 #include <limits>
19 
20 namespace rt{
21 
22 typedef std::int8_t int8;
23 typedef std::int16_t int16;
24 typedef std::int32_t int32;
25 typedef std::int64_t int64;
26 
27 typedef std::uint8_t uint8;
28 typedef std::uint16_t uint16;
29 typedef std::uint32_t uint32;
30 typedef std::uint64_t uint64;
31 
32 #define infinity (std::numeric_limits<double>::infinity())
33 #define pi 3.1415
34 
35 }
Definition: bitmap.cpp:4