Public Member Functions | Public Attributes | List of all members
turbomath::Vector Class Reference

#include <turbomath.h>

Public Member Functions

Vector cross (const Vector &v) const
 
float dot (const Vector &v) const
 
float norm () const
 
Vectornormalize ()
 
Vector normalized () const
 
Vector operator* (float s) const
 
Vectoroperator*= (float s)
 
Vector operator+ (const Vector &v) const
 
Vectoroperator+= (const Vector &v)
 
Vector operator- (const Vector &v) const
 
Vectoroperator-= (const Vector &v)
 
Vector operator/ (float s) const
 
Vectoroperator/= (float s)
 
Vectoroperator= (const Vector &v)
 
float sqrd_norm () const
 
 Vector ()
 
 Vector (const Vector &v)
 
 Vector (float x_, float y_, float z_)
 

Public Attributes

float arr [3]
 
float & x
 
float & y
 
float & z
 

Detailed Description

Definition at line 63 of file turbomath.h.

Constructor & Destructor Documentation

turbomath::Vector::Vector ( )

Definition at line 48 of file turbomath.cpp.

turbomath::Vector::Vector ( const Vector v)

Definition at line 40 of file turbomath.cpp.

turbomath::Vector::Vector ( float  x_,
float  y_,
float  z_ 
)

Definition at line 52 of file turbomath.cpp.

Member Function Documentation

Vector turbomath::Vector::cross ( const Vector v) const

Definition at line 162 of file turbomath.cpp.

float turbomath::Vector::dot ( const Vector v) const

Definition at line 156 of file turbomath.cpp.

float turbomath::Vector::norm ( ) const

Definition at line 58 of file turbomath.cpp.

Vector & turbomath::Vector::normalize ( )

Definition at line 70 of file turbomath.cpp.

Vector turbomath::Vector::normalized ( ) const

Definition at line 80 of file turbomath.cpp.

Vector turbomath::Vector::operator* ( float  s) const

Definition at line 126 of file turbomath.cpp.

Vector & turbomath::Vector::operator*= ( float  s)

Definition at line 138 of file turbomath.cpp.

Vector turbomath::Vector::operator+ ( const Vector v) const

Definition at line 96 of file turbomath.cpp.

Vector & turbomath::Vector::operator+= ( const Vector v)

Definition at line 108 of file turbomath.cpp.

Vector turbomath::Vector::operator- ( const Vector v) const

Definition at line 102 of file turbomath.cpp.

Vector & turbomath::Vector::operator-= ( const Vector v)

Definition at line 117 of file turbomath.cpp.

Vector turbomath::Vector::operator/ ( float  s) const

Definition at line 132 of file turbomath.cpp.

Vector & turbomath::Vector::operator/= ( float  s)

Definition at line 147 of file turbomath.cpp.

Vector & turbomath::Vector::operator= ( const Vector v)

Definition at line 87 of file turbomath.cpp.

float turbomath::Vector::sqrd_norm ( ) const

Definition at line 64 of file turbomath.cpp.

Member Data Documentation

float turbomath::Vector::arr[3]

Definition at line 66 of file turbomath.h.

float& turbomath::Vector::x

Definition at line 67 of file turbomath.h.

float& turbomath::Vector::y

Definition at line 68 of file turbomath.h.

float& turbomath::Vector::z

Definition at line 69 of file turbomath.h.


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


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31