pinocchio
3.9.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Loading...
Searching...
No Matches
sign.hpp
1
//
2
// Copyright (c) 2020 INRIA
3
//
4
5
#ifndef __pinocchio_math_sign_hpp__
6
#define __pinocchio_math_sign_hpp__
7
8
namespace
pinocchio
9
{
13
template
<
typename
Scalar>
14
Scalar
sign
(
const
Scalar
& t)
15
{
16
return
(t >
Scalar
(0)) - (t <
Scalar
(0));
17
}
18
}
// namespace pinocchio
19
20
#endif
// #ifndef __pinocchio_math_sign_hpp__
pinocchio
Main pinocchio namespace.
Definition
treeview.dox:11
pinocchio::sign
Scalar sign(const Scalar &t)
Returns the robust sign of t.
Definition
sign.hpp:14
pinocchio::Scalar
include
pinocchio
math
sign.hpp
Generated by
1.14.0