3 #include <cgv/type/standard_types.h>
4 #include <cgv/math/vec.h>
5 #include <cgv/math/fvec.h>
13 template<
typename T, cgv::type::u
int32_type N>
41 for (i=0; i<_minp.
size(); ++i) {
46 for (i=0; i<_maxp.
size(); ++i) {
54 for (
unsigned int c = 0; c<N; ++c) {
72 for (
unsigned int dim=0; dim < N; ++dim, bit *= 2)
84 bool is_valid()
const {
return minp[0] <= maxp[0]; }
87 for (
unsigned int c = 0; c<N; ++c) {
88 if (p(c) < minp(c))
return false;
89 if (p(c) >= maxp(c))
return false;
96 for (
unsigned int c = 0; c<N; ++c) {
97 if (p(c) > maxp(c)) maxp(c) = p(c);
98 if (p(c) < minp(c)) minp(c) = p(c);
107 for (
unsigned int c = 0; p.
size(); ++c) {
110 if (p(c) > maxp(c)) maxp(c) = p(c);
111 if (p(c) < minp(c)) minp(c) = p(c);
129 for (
unsigned int c = 0; c<N; ++c) {
147 for (
unsigned i=1; i<N; ++i)
155 template<
typename T, cgv::type::u
int32_type N>
156 std::ostream& operator<<(std::ostream& out,
const axis_aligned_box<T, N>& box)
158 return out << box.get_min_pnt() <<
"->" << box.get_max_pnt();
A column vector class.
Definition: fvec.h:13
unsigned size() const
number of elements
Definition: vec.h:97
the cgv namespace
Definition: vr_calib.cxx:9