vector_3_f.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "hebi.h"
4 
5 namespace hebi {
6 
8 struct Vector3f {
9 public:
12  Vector3f(float x, float y, float z) : x_(x), y_(y), z_(z) {}
13 
14 #ifndef DOXYGEN_OMIT_INTERNAL
15  Vector3f(const HebiVector3f& src) : x_(src.x), y_(src.y), z_(src.z) {}
18 #endif // DOXYGEN_OMIT_INTERNAL
19 
21  float getX() const { return x_; }
23  float getY() const { return y_; }
25  float getZ() const { return z_; }
26 
27 private:
28  float x_;
29  float y_;
30  float z_;
31 };
32 
33 } // namespace hebi
float getY() const
Returns the Y component of the vector.
Definition: vector_3_f.hpp:23
Structure to hold a 3-D floating point vector (i.e., x/y/z components)
Definition: vector_3_f.hpp:8
Definition: arm.cpp:5
float x
Definition: hebi.h:565
float z
Definition: hebi.h:567
float y
Definition: hebi.h:566
float getZ() const
Returns the Z component of the vector.
Definition: vector_3_f.hpp:25
Vector3f(float x, float y, float z)
Create a 3-D floating point vector from three floating point components.
Definition: vector_3_f.hpp:12
float getX() const
Returns the X component of the vector.
Definition: vector_3_f.hpp:21


hebi_cpp_api_ros
Author(s): Chris Bollinger , Matthew Tesch
autogenerated on Thu May 28 2020 03:14:45