fawkes::HomPoint Class Reference
A homogeneous point. More...
#include <geometry/hom_point.h>

Public Member Functions | |
| HomPoint (float x=0.0, float y=0.0, float z=0.0) | |
| Constructor. | |
| HomPoint (const HomCoord &h) | |
| Constructor. | |
| virtual | ~HomPoint () |
| Destructor. | |
| float | distance () const |
| Obtain distance from the point to the origin. | |
| HomPoint & | move (float dx, float dy, float dz) |
| Move the point by the given coordiantes. | |
| HomPoint & | move_to (float x, float y, float z) |
| Move the point to the given coordiantes. | |
| HomVector | operator- (const HomPoint &p) const |
| Compute the vector between two points. | |
Detailed Description
A homogeneous point.
Definition at line 32 of file hom_point.h.
Constructor & Destructor Documentation
| fawkes::HomPoint::HomPoint | ( | float | x = 0.0, |
|
| float | y = 0.0, |
|||
| float | z = 0.0 | |||
| ) |
Constructor.
- Parameters:
-
x the x-coordinate y the y-coordinate z the z-coordinate
Definition at line 42 of file hom_point.cpp.
| fawkes::HomPoint::HomPoint | ( | const HomCoord & | h | ) |
Constructor.
- Parameters:
-
h a HomCoord
Definition at line 50 of file hom_point.cpp.
References fawkes::HomCoord::w().
| fawkes::HomPoint::~HomPoint | ( | ) | [virtual] |
Member Function Documentation
| float fawkes::HomPoint::distance | ( | ) | const |
Obtain distance from the point to the origin.
- Returns:
- distance to origin
Definition at line 70 of file hom_point.cpp.
References fawkes::HomCoord::x(), fawkes::HomCoord::y(), and fawkes::HomCoord::z().
| HomPoint & fawkes::HomPoint::move | ( | float | dx, | |
| float | dy, | |||
| float | dz | |||
| ) |
Move the point by the given coordiantes.
- Parameters:
-
dx x-offset dy y-offset dz z-offset
- Returns:
- reference to the moved point
Definition at line 83 of file hom_point.cpp.
References fawkes::HomCoord::x(), fawkes::HomCoord::y(), and fawkes::HomCoord::z().
| HomPoint & fawkes::HomPoint::move_to | ( | float | x, | |
| float | y, | |||
| float | z | |||
| ) |
Move the point to the given coordiantes.
- Parameters:
-
x new x-coordinate y new y-coordinate z new z-coordinate
- Returns:
- reference to the moved point
Definition at line 99 of file hom_point.cpp.
References fawkes::HomCoord::x(), fawkes::HomCoord::y(), and fawkes::HomCoord::z().
Referenced by fawkes::HomVectorDrawer::draw().
Compute the vector between two points.
- Parameters:
-
p the other point
- Returns:
- the vector between the two points
Definition at line 113 of file hom_point.cpp.
References fawkes::HomCoord::x(), fawkes::HomCoord::y(), and fawkes::HomCoord::z().
The documentation for this class was generated from the following files:
- src/libs/geometry/hom_point.h
- src/libs/geometry/hom_point.cpp

