OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Coordinate.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 
13 #include <otb/Coordinate.h>
14 
15 namespace ossimplugins
16 {
17 
18 
19 
21  _x(0.0),
22  _y(0.0),
23  _z(0.0)
24 {
25 }
26 
28 {
29 }
30 
31 Coordinate::Coordinate(double x, double y, double z):
32  _x(x),
33  _y(y),
34  _z(z)
35 {
36 }
37 
39  _x(rhs._x),
40  _y(rhs._y),
41  _z(rhs._z)
42 {
43 }
44 
46 {
47  _x = rhs._x;
48  _y = rhs._y;
49  _z = rhs._z;
50 
51  return *this;
52 }
53 
54 void Coordinate::set_coordinates(double x, double y, double z)
55 {
56  _x = x;
57  _y = y;
58  _z = z;
59 
60 }
61 }
ossim_uint32 x
ossim_uint32 y
void set_coordinates(double x, double y, double z)
Definition: Coordinate.cpp:54
Coordinate()
Constructor.
Definition: Coordinate.cpp:20
Coordinate & operator=(const Coordinate &rhs)
Affectation operator.
Definition: Coordinate.cpp:45
~Coordinate()
Destructor.
Definition: Coordinate.cpp:27
This class represents a coordinate.
Definition: Coordinate.h:25