9 #ifndef __HOM_BoundingBox_h__
10 #define __HOM_BoundingBox_h__
29 : myBoundingBox(0.0
f, 0.0
f, 0.0
f, 0.0
f, 0.0
f, 0.0
f)
33 double xmin,
double ymin,
double zmin,
34 double xmax,
double ymax,
double zmax)
35 : myBoundingBox(xmin, ymin, zmin, xmax, ymax, zmax)
39 : myBoundingBox(src.myBoundingBox)
69 {
return myBoundingBox.isValid(); }
71 void setTo(
const std::vector<double> &tuple);
74 {
return myBoundingBox.minvec(); }
76 {
return myBoundingBox.maxvec(); }
78 {
return myBoundingBox.size(); }
81 {
return myBoundingBox.center(); }
83 void enlargeToContain(
const std::vector<double> &point);
87 bool contains(
const std::vector<double> &point);
97 {
return &myBoundingBox; }
#define HOM_DESTRUCT_OBJECT(pointer)
GLsizei const GLchar *const * string
bool almostEqual(HOM_BoundingBox &bbox, double tolerance=0.00001)
bool operator!=(HOM_PtrOrNull< HOM_BoundingBox > bbox)
string __repr__(VtArray< T > const &self)
UT_BoundingBoxD myBoundingBox
void ignore(T const &) VULKAN_HPP_NOEXCEPT
#define HOM_CONSTRUCT_OBJECT(pointer)
HOM_BoundingBox(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
bool operator==(HOM_PtrOrNull< HOM_BoundingBox > bbox)
void enlargeToContain(const HOM_BoundingBox &bbox)
HOM_BoundingBox(const UT_BoundingBoxD &bbox)
void setTo(const std::vector< double > &sequence)
HOM_BoundingBox(const HOM_BoundingBox &src)
HOM_Matrix4 __mul__(HOM_Matrix4 &matrix4)
bool isAlmostEqual(HOM_Matrix4 &matrix4, double tolerance=0.00001)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool OIIO_UTIL_API contains(string_view a, string_view b)
Does 'a' contain the string 'b' within it?
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.