Ravelin
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Ravelin::VECTOR3 Class Reference

A three-dimensional floating point vector used for representing points and vectors in 3D with associated frame information. More...

#include <Vector3d.h>

Public Member Functions

 VECTOR3 (boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
 VECTOR3 (boost::shared_ptr< POSE3 > pose)
 
 VECTOR3 (REAL x, REAL y, REAL z, boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
 VECTOR3 (REAL x, REAL y, REAL z, boost::shared_ptr< POSE3 > pose)
 
 VECTOR3 (const REAL *array, boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
 VECTOR3 (const REAL *array, boost::shared_ptr< POSE3 > pose)
 
 VECTOR3 (const VECTOR3 &source)
 
 VECTOR3 (const ORIGIN3 &source, boost::shared_ptr< const POSE3 > pose)
 
 VECTOR3 (const ORIGIN3 &source, boost::shared_ptr< POSE3 > pose)
 
REAL dot (const VECTOR3 &v) const
 
void normalize ()
 
void normalize_or_zero ()
 
unsigned size () const
 
bool is_finite () const
 
REAL norm_inf () const
 
REAL norm () const
 
REAL norm_sq () const
 
VECTOR3set_zero ()
 
VECTOR3set_one ()
 
VECTOR3set_zero (boost::shared_ptr< const POSE3 > pose)
 
VECTOR3set_one (boost::shared_ptr< const POSE3 > pose)
 
bool operator< (const VECTOR3 &v) const
 
VECTOR3operator= (const ORIGIN3 &o)
 
VECTOR3operator= (const VECTOR3 &v)
 
VECTOR3 operator+ (const VECTOR3 &v) const
 
VECTOR3 operator- (const VECTOR3 &v) const
 
VECTOR3 operator+ (const ORIGIN3 &o) const
 
VECTOR3 operator- (const ORIGIN3 &o) const
 
VECTOR3operator+= (const VECTOR3 &v)
 
VECTOR3operator-= (const VECTOR3 &v)
 
VECTOR3operator+= (const ORIGIN3 &o)
 
VECTOR3operator-= (const ORIGIN3 &o)
 
VECTOR3operator*= (REAL scalar)
 
VECTOR3 operator* (REAL scalar) const
 
VECTOR3 operator/ (REAL scalar) const
 
VECTOR3operator/= (REAL scalar)
 
VECTOR3 operator- () const
 
REAL * data ()
 
const REAL * data () const
 
unsigned rows () const
 
unsigned columns () const
 
VECTOR3resize (unsigned m, unsigned n, bool preserve=false)
 
unsigned inc () const
 
unsigned leading_dim () const
 
REAL & x ()
 
const REAL & x () const
 
REAL & y ()
 
const REAL & y () const
 
REAL & z ()
 
const REAL & z () const
 
REAL & operator[] (const unsigned i)
 
const REAL & operator[] (const unsigned i) const
 
const REAL * data (unsigned i) const
 
REAL * data (unsigned i)
 
COLUMN_ITERATOR begin ()
 
CONST_COLUMN_ITERATOR begin () const
 
COLUMN_ITERATOR end ()
 
CONST_COLUMN_ITERATOR end () const
 
COLUMN_ITERATOR column_iterator_begin ()
 
CONST_COLUMN_ITERATOR column_iterator_begin () const
 
COLUMN_ITERATOR column_iterator_end ()
 
CONST_COLUMN_ITERATOR column_iterator_end () const
 
ROW_ITERATOR row_iterator_begin ()
 
CONST_ROW_ITERATOR row_iterator_begin () const
 
ROW_ITERATOR row_iterator_end ()
 
CONST_ROW_ITERATOR row_iterator_end () const
 
VECTOR3resize (unsigned N, bool keep=true)
 
 VECTOR3 (boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
 VECTOR3 (boost::shared_ptr< POSE3 > pose)
 
 VECTOR3 (REAL x, REAL y, REAL z, boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
 VECTOR3 (REAL x, REAL y, REAL z, boost::shared_ptr< POSE3 > pose)
 
 VECTOR3 (const REAL *array, boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
 VECTOR3 (const REAL *array, boost::shared_ptr< POSE3 > pose)
 
 VECTOR3 (const VECTOR3 &source)
 
 VECTOR3 (const ORIGIN3 &source, boost::shared_ptr< const POSE3 > pose)
 
 VECTOR3 (const ORIGIN3 &source, boost::shared_ptr< POSE3 > pose)
 
REAL dot (const VECTOR3 &v) const
 
void normalize ()
 
void normalize_or_zero ()
 
unsigned size () const
 
bool is_finite () const
 
REAL norm_inf () const
 
REAL norm () const
 
REAL norm_sq () const
 
VECTOR3set_zero ()
 
VECTOR3set_one ()
 
VECTOR3set_zero (boost::shared_ptr< const POSE3 > pose)
 
VECTOR3set_one (boost::shared_ptr< const POSE3 > pose)
 
bool operator< (const VECTOR3 &v) const
 
VECTOR3operator= (const ORIGIN3 &o)
 
VECTOR3operator= (const VECTOR3 &v)
 
VECTOR3 operator+ (const VECTOR3 &v) const
 
VECTOR3 operator- (const VECTOR3 &v) const
 
VECTOR3 operator+ (const ORIGIN3 &o) const
 
VECTOR3 operator- (const ORIGIN3 &o) const
 
VECTOR3operator+= (const VECTOR3 &v)
 
VECTOR3operator-= (const VECTOR3 &v)
 
VECTOR3operator+= (const ORIGIN3 &o)
 
VECTOR3operator-= (const ORIGIN3 &o)
 
VECTOR3operator*= (REAL scalar)
 
VECTOR3 operator* (REAL scalar) const
 
VECTOR3 operator/ (REAL scalar) const
 
VECTOR3operator/= (REAL scalar)
 
VECTOR3 operator- () const
 
REAL * data ()
 
const REAL * data () const
 
unsigned rows () const
 
unsigned columns () const
 
VECTOR3resize (unsigned m, unsigned n, bool preserve=false)
 
unsigned inc () const
 
unsigned leading_dim () const
 
REAL & x ()
 
const REAL & x () const
 
REAL & y ()
 
const REAL & y () const
 
REAL & z ()
 
const REAL & z () const
 
REAL & operator[] (const unsigned i)
 
const REAL & operator[] (const unsigned i) const
 
const REAL * data (unsigned i) const
 
REAL * data (unsigned i)
 
COLUMN_ITERATOR begin ()
 
CONST_COLUMN_ITERATOR begin () const
 
COLUMN_ITERATOR end ()
 
CONST_COLUMN_ITERATOR end () const
 
COLUMN_ITERATOR column_iterator_begin ()
 
CONST_COLUMN_ITERATOR column_iterator_begin () const
 
COLUMN_ITERATOR column_iterator_end ()
 
CONST_COLUMN_ITERATOR column_iterator_end () const
 
ROW_ITERATOR row_iterator_begin ()
 
CONST_ROW_ITERATOR row_iterator_begin () const
 
ROW_ITERATOR row_iterator_end ()
 
CONST_ROW_ITERATOR row_iterator_end () const
 
VECTOR3resize (unsigned N, bool keep=true)
 

Static Public Member Functions

static REAL dot (const VECTOR3 &v1, const VECTOR3 &v2)
 
static VECTOR3 normalize (const VECTOR3 &v)
 
static REAL norm (const VECTOR3 &v)
 
static REAL norm_sq (const VECTOR3 &v)
 
static VECTOR3 zero (boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
static VECTOR3 one (boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
static VECTOR3 cross (const VECTOR3 &v1, const VECTOR3 &v2)
 
static VECTOR3 determine_orthogonal_vec (const VECTOR3 &v)
 
static void determine_orthonormal_basis (const VECTOR3 &v1, VECTOR3 &v2, VECTOR3 &v3)
 
static REAL dot (const VECTOR3 &v1, const VECTOR3 &v2)
 
static VECTOR3 normalize (const VECTOR3 &v)
 
static REAL norm (const VECTOR3 &v)
 
static REAL norm_sq (const VECTOR3 &v)
 
static VECTOR3 zero (boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
static VECTOR3 one (boost::shared_ptr< const POSE3 > pose=boost::shared_ptr< const POSE3 >())
 
static VECTOR3 cross (const VECTOR3 &v1, const VECTOR3 &v2)
 
static VECTOR3 determine_orthogonal_vec (const VECTOR3 &v)
 
static void determine_orthonormal_basis (const VECTOR3 &v1, VECTOR3 &v2, VECTOR3 &v3)
 

Public Attributes

boost::shared_ptr< const POSE3pose
 The frame that this vector is defined in.
 

Detailed Description

A three-dimensional floating point vector used for representing points and vectors in 3D with associated frame information.


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