23#include <owl/common/math/vec.h>
24#include <owl/common/math/box.h>
25#include <owl/common/math/AffineSpace.h>
39 using owl::common::vec2uc;
40 using owl::common::vec3uc;
41 using owl::common::vec4uc;
43 using owl::common::vec2f;
44 using owl::common::vec3f;
45 using owl::common::vec4f;
47 using owl::common::vec2i;
48 using owl::common::vec3i;
49 using owl::common::vec4i;
51 using owl::common::vec2ui;
52 using owl::common::vec3ui;
53 using owl::common::vec4ui;
55 using owl::common::vec2l;
56 using owl::common::vec3l;
57 using owl::common::vec4l;
59 using owl::common::vec2ul;
60 using owl::common::vec3ul;
61 using owl::common::vec4ul;
63 using owl::common::box3f;
67 using owl::common::prettyNumber;
68 using owl::common::prettyDouble;
70 template<
size_t alignment>
71 inline size_t smallestMultipleOf(
size_t unalignedSize)
73 const size_t numBlocks = (unalignedSize+alignment-1)/alignment;
74 return numBlocks*alignment;
77 inline void *addPointerOffset(
void *ptr,
size_t offset)
79 if (ptr ==
nullptr)
return nullptr;
80 return (
void*)((
unsigned char *)ptr + offset);
85#define IGNORING_THIS() std::cout << OWL_TERMINAL_YELLOW << "## ignoring " << __PRETTY_FUNCTION__ << OWL_TERMINAL_DEFAULT << std::endl;
Definition: AffineSpace.h:52
3D Linear Transform (3x3 Matrix)
Definition: LinearSpace.h:185