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
float x
Definition: hebi.h:425
Structure to hold a 3-D floating point vector (i.e., x/y/z components)
Definition: vector_3_f.hpp:8
Definition: color.hpp:5
float z
Definition: hebi.h:427
float y
Definition: hebi.h:426
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


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:09:46