List of all members.
Detailed Description
3D segment
Constructor & Destructor Documentation
default constructor
- Parameters:
-
| p1 | point of origin |
| p2 | end point constructor |
| p1 | point of origin |
| p2 | end point |
Carthesian::Segment3D::Segment3D |
( |
const Segment3D & |
s |
) |
|
copy constructor
- Parameters:
-
References p1, and p2.
Member Function Documentation
Point3D Carthesian::Segment3D::get_p1 |
( |
|
) |
const [inline] |
accessor to origin of the segment
- Returns:
- point origin of the segment
References p1.
Point3D Carthesian::Segment3D::get_p2 |
( |
|
) |
const [inline] |
accessor to end of the segment
- Returns:
- point end of the segment
References p2.
double Carthesian::Segment3D::length |
( |
|
) |
const [inline] |
return the length of the segment
- Returns:
- the length of the segment
References p1, and p2.
affectation constructor
- Parameters:
-
References p1, and p2.
geneal setter
- Parameters:
-
| p1 | point of origin |
| p2 | end point |
construct the vector corresponding to the segment
- Returns:
- the vector having the same orientation and the same length than the segment
References p1, and p2.
Referenced by to_unit_vector().
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Segment3D & |
p | |
|
) |
| | [friend] |
content printer
- Parameters:
-
| os | output flux |
| pixel | current oject alias |
- Returns:
- the content description added to the output flux
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/pascal/depot/filedata/src/geometry/geometry.h
- /home/pascal/depot/filedata/src/geometry/geometry.cpp