Main Page
Classes
Files
File List
File Members
src
ObjectPoint.cpp
Go to the documentation of this file.
1
18
#include "
ObjectPoint.h
"
19
20
ObjectPoint::ObjectPoint
():X(0),Y(0),Z(0),SetId(0)
21
{
22
23
}
24
25
ObjectPoint::ObjectPoint
(
double
x,
double
y,
double
z,
int
setId):
X
(x),
Y
(y),
Z
(z),
SetId
(setId)
26
{
27
28
}
29
30
ObjectPoint::~ObjectPoint
()
31
{
32
33
}
34
35
double
ObjectPoint::calcDistance
(
ObjectPoint
p)
36
{
37
return
sqrt(pow((this->
X
)-p.
getX
(),2)+pow((this->
Y
)-p.
getY
(),2)+pow((this->
Z
)-p.
getZ
(),2));
38
}
39
ObjectPoint::Y
double Y
Definition:
ObjectPoint.h:27
ObjectPoint::getX
double getX() const
Definition:
ObjectPoint.h:35
ObjectPoint::Z
double Z
Definition:
ObjectPoint.h:28
ObjectPoint::~ObjectPoint
virtual ~ObjectPoint()
Definition:
ObjectPoint.cpp:30
ObjectPoint
Definition:
ObjectPoint.h:24
ObjectPoint::SetId
int SetId
Definition:
ObjectPoint.h:29
ObjectPoint::ObjectPoint
ObjectPoint()
Definition:
ObjectPoint.cpp:20
ObjectPoint.h
ObjectPoint::getZ
double getZ() const
Definition:
ObjectPoint.h:37
ObjectPoint::calcDistance
double calcDistance(ObjectPoint p)
Definition:
ObjectPoint.cpp:35
ObjectPoint::getY
double getY() const
Definition:
ObjectPoint.h:36
ObjectPoint::X
double X
Definition:
ObjectPoint.h:26
asr_intermediate_object_generator
Author(s): Borella Jocelyn, Meißner Pascal
autogenerated on Thu Nov 21 2019 03:53:41