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)
 
float sqrd_norm () const
 
 Vector ()
 
 Vector (float x_, float y_, float z_)
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

Definition at line 62 of file turbomath.h.

Constructor & Destructor Documentation

turbomath::Vector::Vector ( )

Definition at line 38 of file turbomath.cpp.

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

Definition at line 40 of file turbomath.cpp.

Member Function Documentation

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

Definition at line 125 of file turbomath.cpp.

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

Definition at line 120 of file turbomath.cpp.

float turbomath::Vector::norm ( ) const

Definition at line 42 of file turbomath.cpp.

Vector & turbomath::Vector::normalize ( )

Definition at line 52 of file turbomath.cpp.

Vector turbomath::Vector::normalized ( ) const

Definition at line 61 of file turbomath.cpp.

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

Definition at line 94 of file turbomath.cpp.

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

Definition at line 104 of file turbomath.cpp.

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

Definition at line 68 of file turbomath.cpp.

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

Definition at line 78 of file turbomath.cpp.

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

Definition at line 73 of file turbomath.cpp.

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

Definition at line 86 of file turbomath.cpp.

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

Definition at line 99 of file turbomath.cpp.

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

Definition at line 112 of file turbomath.cpp.

float turbomath::Vector::sqrd_norm ( ) const

Definition at line 47 of file turbomath.cpp.

Member Data Documentation

float turbomath::Vector::x

Definition at line 65 of file turbomath.h.

float turbomath::Vector::y

Definition at line 66 of file turbomath.h.

float turbomath::Vector::z

Definition at line 67 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 Thu Apr 15 2021 05:07:58