|
Fawkes API
Fawkes Development Version
|
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 (cart_coord_2d_t coord) | |
| Constructor. | |
| HomPoint (cart_coord_3d_t coord) | |
| 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. | |
A homogeneous point.
| fawkes::HomPoint::HomPoint | ( | float | x = 0.0, |
| float | y = 0.0, |
||
| float | z = 0.0 |
||
| ) |
Constructor.
| x | the x-coordinate |
| y | the y-coordinate |
| z | the z-coordinate |
Definition at line 42 of file hom_point.cpp.
| fawkes::HomPoint::HomPoint | ( | cart_coord_2d_t | coord | ) |
Constructor.
Constructs a 2-dimensional vector from a cart_coord_2d_t struct.
| coord | a structure for a 2-dimensional coordinate |
Definition at line 51 of file hom_point.cpp.
| fawkes::HomPoint::HomPoint | ( | cart_coord_3d_t | coord | ) |
Constructor.
Constructs a 3-dimensional vector from a cart_coord_3d_t struct.
| coord | a structure for a 3-dimensional coordinate |
Definition at line 60 of file hom_point.cpp.
| fawkes::HomPoint::HomPoint | ( | const HomCoord & | h | ) |
Constructor.
| h | a HomCoord |
Definition at line 68 of file hom_point.cpp.
References fawkes::HomCoord::w().
| fawkes::HomPoint::~HomPoint | ( | ) | [virtual] |
Destructor.
Definition at line 80 of file hom_point.cpp.
| float fawkes::HomPoint::distance | ( | ) | const |
Obtain distance from the point to the origin.
Definition at line 88 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.
| dx | x-offset |
| dy | y-offset |
| dz | z-offset |
Definition at line 101 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.
| x | new x-coordinate |
| y | new y-coordinate |
| z | new z-coordinate |
Definition at line 117 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.
| p | the other point |
Definition at line 131 of file hom_point.cpp.
References fawkes::HomCoord::x(), fawkes::HomCoord::y(), and fawkes::HomCoord::z().