#include <Point3D.h>
|
enum | |
|
| BasicVector3D () |
|
float | v_ [3] |
|
std::ostream & | operator<< (std::ostream &, const BasicVector3D< float > &) |
|
std::ostream & | operator<< (std::ostream &, const BasicVector3D< double > &) |
|
std::istream & | operator>> (std::istream &, BasicVector3D< float > &) |
|
std::istream & | operator>> (std::istream &, BasicVector3D< double > &) |
|
BasicVector3D< float > | operator+ (const BasicVector3D< float > &v) |
|
BasicVector3D< float > | operator+ (const BasicVector3D< float > &a, const BasicVector3D< float > &b) |
|
BasicVector3D< double > | operator+ (const BasicVector3D< double > &v) |
|
BasicVector3D< double > | operator+ (const BasicVector3D< double > &a, const BasicVector3D< double > &b) |
|
BasicVector3D< float > | operator- (const BasicVector3D< float > &v) |
|
BasicVector3D< float > | operator- (const BasicVector3D< float > &a, const BasicVector3D< float > &b) |
|
BasicVector3D< double > | operator- (const BasicVector3D< double > &v) |
|
BasicVector3D< double > | operator- (const BasicVector3D< double > &a, const BasicVector3D< double > &b) |
|
BasicVector3D< float > | operator* (const BasicVector3D< float > &v, double a) |
|
float | operator* (const BasicVector3D< float > &a, const BasicVector3D< float > &b) |
|
BasicVector3D< float > | operator* (double a, const BasicVector3D< float > &v) |
|
BasicVector3D< double > | operator* (const BasicVector3D< double > &v, double a) |
|
double | operator* (const BasicVector3D< double > &a, const BasicVector3D< double > &b) |
|
BasicVector3D< double > | operator* (double a, const BasicVector3D< double > &v) |
|
BasicVector3D< float > | operator/ (const BasicVector3D< float > &v, double a) |
|
BasicVector3D< double > | operator/ (const BasicVector3D< double > &v, double a) |
|
bool | operator== (const BasicVector3D< float > &a, const BasicVector3D< float > &b) |
|
bool | operator== (const BasicVector3D< double > &a, const BasicVector3D< double > &b) |
|
bool | operator!= (const BasicVector3D< float > &a, const BasicVector3D< float > &b) |
|
bool | operator!= (const BasicVector3D< double > &a, const BasicVector3D< double > &b) |
|
Geometrical 3D Point with components of float type.
- Author
- Evgeni Chernyaev Evgue.nosp@m.ni.T.nosp@m.chern.nosp@m.iaev.nosp@m.@cern.nosp@m..ch
Definition at line 43 of file Point3D.h.
◆ Point3D() [1/5]
Default constructor.
Definition at line 47 of file Point3D.h.
◆ Point3D() [2/5]
Constructor from three numbers.
Definition at line 51 of file Point3D.h.
51: BasicVector3D<float>(x1,y1,z1) {}
◆ Point3D() [3/5]
Constructor from array of floats.
Definition at line 55 of file Point3D.h.
56 : BasicVector3D<float>(a[0],a[1],a[2]) {}
◆ Point3D() [4/5]
Copy constructor.
Definition at line 60 of file Point3D.h.
60: BasicVector3D<float>(v) {}
◆ Point3D() [5/5]
◆ ~Point3D()
◆ distance() [1/2]
Returns distance to the origin.
Definition at line 95 of file Point3D.h.
◆ distance() [2/2]
Returns distance to the point.
Definition at line 99 of file Point3D.h.
◆ distance2() [1/2]
Returns distance to the origin squared.
Definition at line 84 of file Point3D.h.
◆ distance2() [2/2]
Returns distance to the point squared.
Definition at line 88 of file Point3D.h.
88 {
89 float dx = p.x()-
x(), dy = p.y()-
y(), dz = p.z()-
z();
90 return dx*dx + dy*dy + dz*dz;
91 }
◆ operator=() [1/2]
◆ operator=() [2/2]
Assignment.
Definition at line 72 of file Point3D.h.
72 {
73 set(v.x(),v.y(),v.z());
return *
this;
74 }
◆ transform()
Transformation by Transform3D.
Definition at line 11 of file Point3D.cc.
11 {
12 double vx =
x(), vy =
y(), vz =
z();
13 set(m.xx()*vx + m.xy()*vy + m.xz()*vz + m.dx(),
14 m.yx()*vx + m.yy()*vy + m.yz()*vz + m.dy(),
15 m.zx()*vx + m.zy()*vy + m.zz()*vz + m.dz());
16 return *this;
17 }
The documentation for this class was generated from the following files: