24 #ifndef __GEOMETRY_HOM_POINT_H_
25 #define __GEOMETRY_HOM_POINT_H_
27 #include <geometry/hom_coord.h>
28 #include <utils/math/types.h>
36 HomPoint(
float x = 0.0,
float y = 0.0,
float z = 0.0);
Cartesian coordinates (2D).
virtual float y() const
RO-getter for y.
HomPoint & move(float dx, float dy, float dz)
Move the point by the given coordiantes.
HomVector operator-(const HomPoint &p) const
Compute the vector between two points.
HomPoint & move_to(float x, float y, float z)
Move the point to the given coordiantes.
virtual float z() const
RO-getter for z.
Base class for homogeneous primitives (vector and point).
Cartesian coordinates (3D).
float distance() const
Obtain distance from the point to the origin.
virtual ~HomPoint()
Destructor.
virtual float x() const
RO-getter for x.
HomPoint(float x=0.0, float y=0.0, float z=0.0)
Constructor.