libalmath  1.14
 All Classes Namespaces Functions Variables Typedefs Groups Pages
alpositionandvelocity.h
1 /*
2  * Copyright (c) 2012 Aldebaran Robotics. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the COPYING file.
5  */
6 
7 
8 #pragma once
9 #ifndef _LIBALMATH_ALMATH_TYPES_ALPOSITIONANDVELOCITY_H_
10 #define _LIBALMATH_ALMATH_TYPES_ALPOSITIONANDVELOCITY_H_
11 
12 namespace AL {
13  namespace Math {
14 
22  {
24  float q;
26  float dq;
27 
30 
41 
42 
43 
45  const float pq = 0.0f,
46  const float pdq = 0.0f);
47 
58  bool isNear(
59  const PositionAndVelocity& pDat2,
60  const float& pEpsilon=0.0001f) const;
61  };
62 
63  }
64 }
65 #endif // _LIBALMATH_ALMATH_TYPES_ALPOSITIONANDVELOCITY_H_