Developer Documentation
PlaneType.hh
1
#pragma once
2
/*===========================================================================*\
3
* *
4
* OpenFlipper *
5
* Copyright (c) 2001-2015, RWTH-Aachen University *
6
* Department of Computer Graphics and Multimedia *
7
* All rights reserved. *
8
* www.openflipper.org *
9
* *
10
*---------------------------------------------------------------------------*
11
* This file is part of OpenFlipper. *
12
*---------------------------------------------------------------------------*
13
* *
14
* Redistribution and use in source and binary forms, with or without *
15
* modification, are permitted provided that the following conditions *
16
* are met: *
17
* *
18
* 1. Redistributions of source code must retain the above copyright notice, *
19
* this list of conditions and the following disclaimer. *
20
* *
21
* 2. Redistributions in binary form must reproduce the above copyright *
22
* notice, this list of conditions and the following disclaimer in the *
23
* documentation and/or other materials provided with the distribution. *
24
* *
25
* 3. Neither the name of the copyright holder nor the names of its *
26
* contributors may be used to endorse or promote products derived from *
27
* this software without specific prior written permission. *
28
* *
29
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
30
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED *
31
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
32
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER *
33
* OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, *
34
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, *
35
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR *
36
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF *
37
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
38
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
39
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
40
* *
41
\*===========================================================================*/
42
43
#include <ACG/Math/Matrix4x4T.hh>
44
#include <ACG/Math/VectorT.hh>
45
#include <ACG/Config/ACGDefines.hh>
46
47
namespace
ACG
{
48
namespace
Geometry {
49
50
class
ACGDLLEXPORT
Plane
{
51
52
public
:
53
Plane
() {}
54
Plane
(
const
ACG::Vec3d
& _p,
const
ACG::Vec3d
& _n,
const
ACG::Vec3d
& _x,
const
ACG::Vec3d
& _y) :
55
position(_p), normal(_n), xDirection(_x), yDirection(_y) {
56
}
57
64
void
setPlane(
const
ACG::Vec3d
& _position,
const
ACG::Vec3d
& _xDirection,
const
ACG::Vec3d
& );
65
71
void
setPlane(
const
ACG::Vec3d
& _position,
const
ACG::Vec3d
& _normal);
72
80
void
setSize(
double
_xDirection,
double
_yDirection);
81
87
void
transform(
const
ACG::Matrix4x4d
& _mat);
88
89
public
:
90
91
ACG::Vec3d
position;
92
ACG::Vec3d
normal;
93
ACG::Vec3d
xDirection;
94
ACG::Vec3d
yDirection;
95
96
};
97
98
}}
// namespaces
ACG
Namespace providing different geometric functions concerning angles.
Definition:
BaseObjectData.hh:68
OpenMesh::VectorT
Definition:
Vector11T.hh:83
ACG::Matrix4x4T< double >
ACG::Geometry::Plane
Definition:
PlaneType.hh:50
OpenFlipper
libs_required
ACG
Geometry
Types
PlaneType.hh
Generated on Fri Dec 13 2019 13:12:06 for Developer Documentation by
1.8.13