ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
E57SimpleData.cpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSL-1.0
2 // Copyright (c) 2020 PTC Inc.
3 
4 // for M_PI. This needs to be first, otherwise we might already include math header
5 // without M_PI and we would get nothing because of the header guards.
6 #define _USE_MATH_DEFINES
7 #include <cmath>
8 
9 #include "E57SimpleData.h"
10 
11 namespace e57
12 {
13 
14  // To avoid exposing M_PI, we define the constructor here.
16  {
17  rangeMinimum = 0.;
18  rangeMaximum = E57_DOUBLE_MAX;
19  azimuthStart = -M_PI;
20  azimuthEnd = M_PI;
21  elevationMinimum = -M_PI / 2.;
22  elevationMaximum = M_PI / 2.;
23  }
24 
25 } // end namespace e57
constexpr double M_PI
Pi.
Definition: CVConst.h:19
Data structures for E57 Simple API.
double azimuthEnd
The ending azimuth angle defining the extent of the bounding region around the z axix.
double elevationMaximum
The maximum extent of the bounding region from the horizontal plane.
double rangeMinimum
The minimum extent of the bounding region in the r direction.
double rangeMaximum
The maximum extent of the bounding region in the r direction.
double elevationMinimum
The minimum extent of the bounding region from the horizontal plane.
double azimuthStart
The starting azimuth angle defining the extent of the bounding region around the z axis.