EduArt Sensor Ring Library 3.0.1
Loading...
Searching...
No Matches
eduart::math::Vector3 Class Reference

Vector of length 3. More...

#include <Vector3.hpp>

Public Member Functions

double & x ()
 First component of the vector.
const double & x () const
 First component of the vector.
double & y ()
 Second component of the vector.
const double & y () const
 Second component of the vector.
double & z ()
 Third component of the vector.
const double & z () const
 Third component of the vector.
double & operator[] (std::size_t idx)
 Indexing the Matrix.
const double & operator[] (std::size_t idx) const
 Indexing the Matrix.
Vector3 operator+ (const Vector3 &other) const
 Vector addition.
Vector3operator+= (const Vector3 &other)
 Vector addition.
Vector3 operator- (const Vector3 &other) const
 Vector subtraction.
Vector3operator-= (const Vector3 &other)
 Vector subtraction.
Vector3 operator* (const double &other) const
 Vector-Scalar multiplication.
Vector3operator*= (const double &other)
 Vector-Scalar multiplication.
Vector3 operator/ (const double &other) const
 Vector-Scalar division.
Vector3operator/= (const double &other)
 Vector-Scalar division.
double abs () const
 Get the length of the vector.

Public Attributes

std::array< double, 3 > data
 Data structure of the Vector 3.

Detailed Description

Vector of length 3.


The documentation for this class was generated from the following file: