#include <segment.h>
Public Types | |
typedef boost::shared_ptr < Segment > | Ptr |
Public Member Functions | |
virtual double | distance (const Eigen::Vector3f &point) const |
virtual double | distance (const Eigen::Vector3f &point, Eigen::Vector3f &foot_point) const |
virtual double | dividingRatio (const Eigen::Vector3f &point) const |
virtual void | foot (const Eigen::Vector3f &point, Eigen::Vector3f &output) const |
compute a point which gives perpendicular projection. | |
virtual bool | intersect (Plane &plane, Eigen::Vector3f &point) const |
Segment (const Eigen::Vector3f &from, const Eigen::Vector3f to) | |
Protected Attributes | |
Eigen::Vector3f | from_ |
Eigen::Vector3f | to_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Segment &seg) |
typedef boost::shared_ptr<Segment> jsk_recognition_utils::Segment::Ptr |
Reimplemented from jsk_recognition_utils::Line.
jsk_recognition_utils::Segment::Segment | ( | const Eigen::Vector3f & | from, |
const Eigen::Vector3f | to | ||
) |
Definition at line 42 of file segment.cpp.
double jsk_recognition_utils::Segment::distance | ( | const Eigen::Vector3f & | point | ) | const [virtual] |
Definition at line 77 of file segment.cpp.
double jsk_recognition_utils::Segment::distance | ( | const Eigen::Vector3f & | point, |
Eigen::Vector3f & | foot_point | ||
) | const [virtual] |
Definition at line 83 of file segment.cpp.
double jsk_recognition_utils::Segment::dividingRatio | ( | const Eigen::Vector3f & | point | ) | const [virtual] |
Definition at line 48 of file segment.cpp.
void jsk_recognition_utils::Segment::foot | ( | const Eigen::Vector3f & | point, |
Eigen::Vector3f & | output | ||
) | const [virtual] |
compute a point which gives perpendicular projection.
Reimplemented from jsk_recognition_utils::Line.
Definition at line 61 of file segment.cpp.
bool jsk_recognition_utils::Segment::intersect | ( | Plane & | plane, |
Eigen::Vector3f & | point | ||
) | const [virtual] |
Definition at line 90 of file segment.cpp.
std::ostream& operator<< | ( | std::ostream & | os, |
const Segment & | seg | ||
) | [friend] |
Definition at line 98 of file segment.cpp.
Eigen::Vector3f jsk_recognition_utils::Segment::from_ [protected] |
Eigen::Vector3f jsk_recognition_utils::Segment::to_ [protected] |