/opt/ros/diamondback/stacks/graspit_simulator/graspit/graspit_source/src/matvec.cpp File Reference

Implements the classes: vec3, position , mat3 , Quaternion , and transf. More...

#include "matvec3D.h"
#include "debug.h"
Include dependency graph for matvec.cpp:

Go to the source code of this file.

Defines

#define BADCONFIG

Functions

mat3 operator* (const mat3 &m1, const mat3 &m2)
std::ostream & operator<< (std::ostream &os, const transf &tr)
std::ostream & operator<< (std::ostream &os, const Quaternion &q)
std::ostream & operator<< (std::ostream &os, const mat3 &m)
std::ostream & operator<< (std::ostream &os, const position &p)
std::ostream & operator<< (std::ostream &os, const vec3 &v)
std::istream & operator>> (std::istream &is, transf &tr)
std::istream & operator>> (std::istream &is, Quaternion &q)
std::istream & operator>> (std::istream &is, mat3 &m)
std::istream & operator>> (std::istream &is, position &p)
std::istream & operator>> (std::istream &is, vec3 &v)

Detailed Description

Implements the classes: vec3, position , mat3 , Quaternion , and transf.

Definition in file matvec.cpp.


Define Documentation

#define BADCONFIG
Value:
{                                                     \
  pr_error("not a valid configuration file!");        \
  fclose(fp);                                         \
  return FAILURE;                                     \
}

Definition at line 40 of file matvec.cpp.


Function Documentation

mat3 operator* ( const mat3 m1,
const mat3 m2 
)

Returns the product of m1 * m2.

Definition at line 151 of file matvec.cpp.

std::ostream& operator<< ( std::ostream &  os,
const transf tr 
)

Writes the 7 values of a transform tr formated as "(w, x, y, z) [v1,v2,v3]" to stream os.

Definition at line 578 of file matvec.cpp.

std::ostream& operator<< ( std::ostream &  os,
const Quaternion q 
)

Writes the 4 values of a quaternion q in the format "(w, x, y, z)" to as stream os.

Definition at line 539 of file matvec.cpp.

std::ostream& operator<< ( std::ostream &  os,
const mat3 m 
)

Writes the matrix out on 3 lines in the following format:

[ # # #]
[ # # #]
[ # # #]

Definition at line 497 of file matvec.cpp.

std::ostream& operator<< ( std::ostream &  os,
const position p 
)

Writes the values of position p to a stream os in the format "[#, #, #]".

Definition at line 462 of file matvec.cpp.

std::ostream& operator<< ( std::ostream &  os,
const vec3 v 
)

Writes the values of vector v to a stream os in the format "[#, #, #]".

Definition at line 425 of file matvec.cpp.

std::istream& operator>> ( std::istream &  is,
transf tr 
)

Reads the 7 values of a transform tr formated as "(w, x, y, z) [v1,v2,v3]" from stream is.

Definition at line 560 of file matvec.cpp.

std::istream& operator>> ( std::istream &  is,
Quaternion q 
)

Reads the 4 values of a quaternion q formatted as "(w, x, y, z)" from a stream is.

Definition at line 520 of file matvec.cpp.

std::istream& operator>> ( std::istream &  is,
mat3 m 
)

Reads the 9 consecutive values of a 3x3 matrix in column major format.

Definition at line 480 of file matvec.cpp.

std::istream& operator>> ( std::istream &  is,
position p 
)

Reads the values of a position p from stream is formatted as "[#, #, #]".

Definition at line 445 of file matvec.cpp.

std::istream& operator>> ( std::istream &  is,
vec3 v 
)

Reads the values of a vector v from stream is formatted as "[#, #, #]"

Definition at line 407 of file matvec.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 10:59:49 2012