HEBI C++ API  3.9.0
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
Structure to hold a 3-D floating point vector (i.e., x/y/z components)
Definition: vector_3_f.hpp:8
float getZ() const
Returns the Z component of the vector.
Definition: vector_3_f.hpp:25
Definition: arm.cpp:8
float getX() const
Returns the X component of the vector.
Definition: vector_3_f.hpp:21
float getY() const
Returns the Y component of the vector.
Definition: vector_3_f.hpp:23
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