Go to the documentation of this file.
12 #ifndef __ICESEGMENT_H__
13 #define __ICESEGMENT_H__
45 inline_ void ComputePoint(
Point& pt,
float t)
const { pt = mP0 + t * (mP1 - mP0); }
48 float SquareDistance(
const Point& point,
float* t=
null)
const;
49 inline_ float Distance(
const Point& point,
float* t=
null)
const {
return sqrtf(SquareDistance(point, t)); }
55 #endif // __ICESEGMENT_H__
inline_ float Distance(const Point &point, float *t=null) const
const inline_ Point & GetOrigin() const
Point mP0
Start of segment.
inline_ Segment(const Segment &seg)
Copy constructor.
inline_ Point ComputeDirection() const
inline_ Segment()
Constructor.
inline_ float ComputeLength() const
inline_ void ComputeDirection(Point &dir) const
inline_ void SetOriginDirection(const Point &origin, const Point &direction)
inline_ float ComputeSquareLength() const
inline_ ~Segment()
Destructor.
inline_ Segment(const Point &p0, const Point &p1)
Constructor.
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:03