HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_OrientedBoundingRect.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef __HOM_OrientedBoundingRect_h__
10 #define __HOM_OrientedBoundingRect_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Matrix2.h"
15 #include "HOM_Vector2.h"
16 
17 #include <UT/UT_OBBox2D.h>
18 
19 SWIGOUT(%rename(OrientedBoundingRect) HOM_OrientedBoundingRect;)
20 
22 {
23 public:
24  HOM_OrientedBoundingRect(const std::vector<HOM_Vector2> &points);
25 
27  { HOM_DESTRUCT_OBJECT(this) }
28 
30  {
31  return brect.myPointer &&
32  myBoundingBox == brect.myPointer->myBoundingBox;
33  }
34 
36  { return !operator==(brect); }
37 
39  double tolerance=0.00001);
40 
41  int __hash__();
44 
46  { return myBoundingBox.getRadii(); }
47 
49  { return myBoundingBox.getCenter(); }
50 
52  { return myBoundingBox.getBasis(); }
53 
54  SWIGOUT(%ignore myBoundingBox;)
55  UT_OBBox2DD myBoundingBox;
56 };
57 
58 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: glad.h:2676
bool operator!=(HOM_PtrOrNull< HOM_OrientedBoundingRect > brect)
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
std::string __str__()
#define HOM_API
Definition: HOM_API.h:13
void ignore(T const &) VULKAN_HPP_NOEXCEPT
Definition: vulkan.hpp:6508
int __hash__()
bool operator==(HOM_PtrOrNull< HOM_OrientedBoundingRect > brect)
bool isAlmostEqual(HOM_Matrix4 &matrix4, double tolerance=0.00001)
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542