Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Utilities
Geometry
Plane.cc
Go to the documentation of this file.
1
6
#include <cmath>
7
#include <utl/Plane.h>
8
#include <utl/ErrorLogger.h>
9
10
using namespace
utl;
11
12
13
Plane::Plane
(
const
Point
& anchor,
const
Vector
& normal) :
14
fAnchor(anchor)
15
{
16
const
double
norm2 = normal.
GetMag2
();
17
if
(norm2) {
18
fNormal
= normal;
19
fNormal
/=
std::sqrt
(norm2);
20
}
else
{
21
fNormal
=
Vector
();
22
ERROR
(
"Plane initialized with invalid normal!"
);
23
}
24
}
utl::Point
Point object.
Definition:
Point.h:32
utl::Plane::Plane
Plane()=default
sqrt
double sqrt(const size_t x)
Definition:
Tools/InclinedShowers/TankResponse/Tabular/TankResponse.cc:28
utl::Plane::fNormal
Vector fNormal
Definition:
Plane.h:27
utl::Vector
Vector object.
Definition:
Vector.h:30
ERROR
#define ERROR(message)
Macro for logging error messages.
Definition:
ErrorLogger.h:165
utl::Vector::GetMag2
double GetMag2() const
Definition:
Vector.h:61
, generated on Tue Sep 26 2023.