Scene Fusion 2 API Reference
ksBounds.h
1 /*************************************************************************
2  *
3  * KINEMATICOUP CONFIDENTIAL
4  * __________________
5  *
6  * Copyright (2016-2021) KinematicSoup Technologies Incorporated
7  * All Rights Reserved.
8  *
9  * NOTICE: All information contained herein is, and remains
10  * the property of KinematicSoup Technologies Incorporated and its
11  * suppliers, if any. The intellectual and technical concepts contained
12  * herein are proprietary to KinematicSoup Technologies Incorporated
13  * and its suppliers and may be covered by Canadian and Foreign Patents,
14  * patents in process, and are protected by trade secret or copyright law.
15  * Dissemination of this information or reproduction of this material
16  * is strictly forbidden unless prior written permission is obtained
17  * from KinematicSoup Technologies Incorporated.
18  */
19 #pragma once
20 
21 #include <cmath>
22 #include <string>
23 #include "Exports.h"
24 #include "ksVector3.h"
25 
26 namespace KS
27 {
28  typedef float Scalar;
29 
30  extern "C"
31  {
32  class EXTERNAL ksBounds
33  {
34  private:
35  ksVector3 m_min;
36  ksVector3 m_max;
37  enum { MIN_X = 0, MIN_Y = 1, MIN_Z = 2, MAX_X = 3, MAX_Y = 4, MAX_Z = 5 };
38 
39  public:
44  {
45  m_min.x() = (Scalar)0.0f;
46  m_min.y() = (Scalar)0.0f;
47  m_min.z() = (Scalar)0.0f;
48  m_max.x() = (Scalar)0.0f;
49  m_max.y() = (Scalar)0.0f;
50  m_max.z() = (Scalar)0.0f;
51  }
52 
53  ksBounds(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
54  {
55  m_min.x() = minX;
56  m_min.y() = minY;
57  m_min.z() = minZ;
58  m_max.x() = maxX;
59  m_max.y() = maxY;
60  m_max.z() = maxZ;
61  }
62 
63  ksVector3 Min() const
64  {
65  return m_min;
66  }
67 
68  ksVector3 Max() const
69  {
70  return m_max;
71  }
72  };
73  }
74 }
Definition: ksBounds.h:33
ksBounds()
Definition: ksBounds.h:43
Definition: ksVector3.h:32
Definition: sfDictionaryProperty.h:24