DistFuncs.h
Go to the documentation of this file.
1 #ifndef HRPCOLLISION_DISTFUNCS_H_INCLUDED
2 #define HRPCOLLISION_DISTFUNCS_H_INCLUDED
3 
4 #include "Opcode/Opcode.h"
5 #include "config.h"
6 
14 HRP_COLLISION_EXPORT float PointSegDist(const Point& P, const Point& u0, const Point& u1);
15 
24 HRP_COLLISION_EXPORT float SegSegDist(const Point& u0, const Point& u1,
25  const Point& v0, const Point& v1);
26 
39 HRP_COLLISION_EXPORT float TriTriDist(const Point& U0, const Point& U1, const Point& U2,
40  const Point& V0, const Point& V1, const Point& V2,
41  Point& cp0, Point& cp1);
42 
43 
44 #if 1
45 #include <iostream>
46 std::ostream &operator<<(std::ostream &ost, const Point& p);
47 #endif
48 
49 #endif
HRP_COLLISION_EXPORT float SegSegDist(const Point &u0, const Point &u1, const Point &v0, const Point &v1)
compute distance between line segments
Definition: DistFuncs.cpp:271
std::ostream & operator<<(std::ostream &ost, const Point &p)
Definition: DistFuncs.cpp:3
#define HRP_COLLISION_EXPORT
Definition: Opcode.h:27
HRP_COLLISION_EXPORT float TriTriDist(const Point &U0, const Point &U1, const Point &U2, const Point &V0, const Point &V1, const Point &V2, Point &cp0, Point &cp1)
compute the minimum distance and the closest points between two triangles
Definition: DistFuncs.cpp:154
HRP_COLLISION_EXPORT float PointSegDist(const Point &P, const Point &u0, const Point &u1)
compute distance between a point and a line segment
Definition: DistFuncs.cpp:115


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat May 8 2021 02:42:37