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> inline char axisLabel();
19 
20  template<> inline char axisLabel<0>() { return 'X'; }
21  template<> inline char axisLabel<1>() { return 'Y'; }
22  template<> inline char axisLabel<2>() { return 'Z'; }
23 }
24 
25 #endif // __pinocchio_axis_label_hpp__
pinocchio::axisLabel< 0 >
char axisLabel< 0 >()
Definition: axis-label.hpp:20
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:21
pinocchio::axisLabel< 2 >
char axisLabel< 2 >()
Definition: axis-label.hpp:22
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:28


pinocchio
Author(s):
autogenerated on Tue Feb 13 2024 03:43:57