Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
platform
Geometry
OrientedBox2.h
1
// Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2
3
#pragma once
4
5
#include "Geometry.h"
6
7
#include "VectorMath.h"
8
9
namespace
Eegeo
10
{
11
namespace
Geometry
12
{
13
class
OrientedBox2
14
{
15
public
:
16
17
OrientedBox2
();
18
19
OrientedBox2
(
const
v2
& center,
20
const
v2
& axisX,
21
const
v2
& axisY,
22
const
v2
& halfExtents);
23
24
v2
GetCenter()
const
{
return
m_center; }
25
v2
GetAxisX()
const
{
return
m_axisX; }
26
v2
GetAxisY()
const
{
return
m_axisY; }
27
v2
GetHalfExtents()
const
{
return
m_halfExtents; }
28
29
Geometry::Bounds2D
CalcAxisAlignedBounds()
const
;
30
31
Geometry::AxisAlignedBox2
CalcAxisAlignedBox2()
const
;
32
private
:
33
v2
m_center;
34
v2
m_axisX;
35
v2
m_axisY;
36
v2
m_halfExtents;
37
};
38
}
39
}
Generated on Sat Jun 10 2023 02:00:30 for eeGeo Platform SDK by
1.8.3.1