libalmath  2.8.7.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
shapes3d_utils.h
Go to the documentation of this file.
1 
8 #ifndef LIB_ALMATH_GEOMETRICS_SHAPES3D_UTILS_H
9 #define LIB_ALMATH_GEOMETRICS_SHAPES3D_UTILS_H
10 
11 #include <almath/api.h>
14 
15 namespace AL {
16 namespace Math {
17 
18 ALMATH_API
19 void getSphereCentersFromPill(float pHalfExtent,
20  const Math::Transform &pEndTfToPillCenter,
21  Math::Position3D &pCenterA,
22  Math::Position3D &pCenterB);
23 
24 // compute the pill center and half extent so that the pill vector is oriented
25 // from A to B
26 ALMATH_API
27 void computePillParameters(const Math::Position3D &pEndTfToCenterA,
28  const Math::Position3D &pEndTfToCenterB,
29  float &pHalfExtent,
30  Math::Transform &pEndTfToPillCenter);
31 
32 } // End namespace Math.
33 } // End namespace AL.
34 
35 #endif // LIB_ALMATH_GEOMETRICS_SHAPES3D_UTILS_H
ALMATH_API void computePillParameters(const Math::Position3D &pEndTfToCenterA, const Math::Position3D &pEndTfToCenterB, float &pHalfExtent, Math::Transform &pEndTfToPillCenter)
ALMATH_API void getSphereCentersFromPill(float pHalfExtent, const Math::Transform &pEndTfToPillCenter, Math::Position3D &pCenterA, Math::Position3D &pCenterB)