HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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:983
bool operator!=(HOM_PtrOrNull< HOM_OrientedBoundingRect > brect)
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
#define HOM_API
Definition: HOM_API.h:13
std::string __str__()
bool operator==(HOM_PtrOrNull< HOM_OrientedBoundingRect > brect)
bool isAlmostEqual(HOM_Vector3 &vector3, double tolerance=0.00001)
std::string __repr__()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:596
int __hash__()