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
hebi::Vector3f
Structure to hold a 3-D floating point vector (i.e., x/y/z components)
Definition: vector_3_f.hpp:8
hebi::Vector3f::getZ
float getZ() const
Returns the Z component of the vector.
Definition: vector_3_f.hpp:25
hebi::Vector3f::y_
float y_
Definition: vector_3_f.hpp:29
hebi::Vector3f::z_
float z_
Definition: vector_3_f.hpp:30
hebi::Vector3f::x_
float x_
Definition: vector_3_f.hpp:28
hebi
Definition: arm.cpp:5
hebi::Vector3f::getX
float getX() const
Returns the X component of the vector.
Definition: vector_3_f.hpp:21
hebi.h
hebi::Vector3f::getY
float getY() const
Returns the Y component of the vector.
Definition: vector_3_f.hpp:23
HebiVector3f_
Definition: hebi.h:564
hebi::Vector3f::Vector3f
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


hebi_cpp_api_ros
Author(s): Chris Bollinger , Matthew Tesch
autogenerated on Fri Aug 2 2024 08:35:18