axis-label.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2018 CNRS
3 //
4 
5 #ifndef __pinocchio_axis_label_hpp__
6 #define __pinocchio_axis_label_hpp__
7 
8 namespace pinocchio
9 {
10 
18  template<int axis>
19  inline char axisLabel();
20 
21  template<>
22  inline char axisLabel<0>()
23  {
24  return 'X';
25  }
26  template<>
27  inline char axisLabel<1>()
28  {
29  return 'Y';
30  }
31  template<>
32  inline char axisLabel<2>()
33  {
34  return 'Z';
35  }
36 } // namespace pinocchio
37 
38 #endif // __pinocchio_axis_label_hpp__
pinocchio::axisLabel< 0 >
char axisLabel< 0 >()
Definition: axis-label.hpp:22
pinocchio::axisLabel
char axisLabel()
Generate the label (X, Y or Z) of the axis relative to its index.
pinocchio::axisLabel< 1 >
char axisLabel< 1 >()
Definition: axis-label.hpp:27
pinocchio::axisLabel< 2 >
char axisLabel< 2 >()
Definition: axis-label.hpp:32
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Mon Dec 16 2024 03:40:58