$search

Vector3 Class Reference

Three dimensional Vector class. More...

#include <matrix3.h>

List of all members.

Public Member Functions

double & operator() (int idx)
 Access Elements.
Vector3 operator* (double v)
 Vector multiplication with a scalar.
Vector3operator*= (double v)
 Vector multiplication with a Scalar and output into itself.
Vector3operator+= (const Vector3 &v)
 Vector Addition and output into itself.
Vector3operator+= (double v)
 Adding a Scalar to a Vector and output into itself.
Vector3operator= (double v)
 Set Vector with one scalar value.
double operator[] (int idx) const
 Access Elements.
double & operator[] (int idx)
 Access Elements.
 Vector3 ()
 Constructor.

Public Attributes

double x [3]
 Storage for three dimensions.

Friends

std::ostream & operator<< (std::ostream &os, const Vector3 &v)
 Print out a vector.

Detailed Description

Three dimensional Vector class.

Definition at line 137 of file matrix3.h.


Constructor & Destructor Documentation

Vector3::Vector3 (  )  [inline]

Constructor.

Definition at line 143 of file matrix3.h.


Member Function Documentation

double& Vector3::operator() ( int  idx  )  [inline]

Access Elements.

Parameters:
idx Index
Returns:
Value

Definition at line 167 of file matrix3.h.

Vector3 Vector3::operator* ( double  v  )  [inline]

Vector multiplication with a scalar.

Parameters:
v Scalar
Returns:
Result Vector

Definition at line 175 of file matrix3.h.

Vector3& Vector3::operator*= ( double  v  )  [inline]

Vector multiplication with a Scalar and output into itself.

Parameters:
v Scalar
Returns:
Result Vector

Definition at line 196 of file matrix3.h.

Vector3& Vector3::operator+= ( const Vector3 v  )  [inline]

Vector Addition and output into itself.

Parameters:
v Vector
Returns:
Result Vector

Definition at line 216 of file matrix3.h.

Vector3& Vector3::operator+= ( double  v  )  [inline]

Adding a Scalar to a Vector and output into itself.

Parameters:
v Scalar
Returns:
Result Vector

Definition at line 206 of file matrix3.h.

Vector3& Vector3::operator= ( double  v  )  [inline]

Set Vector with one scalar value.

Parameters:
v Scalar
Returns:
Result Vector

Definition at line 186 of file matrix3.h.

double Vector3::operator[] ( int  idx  )  const [inline]

Access Elements.

Parameters:
idx Index
Returns:
Value

Definition at line 159 of file matrix3.h.

double& Vector3::operator[] ( int  idx  )  [inline]

Access Elements.

Parameters:
idx Index
Returns:
Value

Definition at line 151 of file matrix3.h.


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Vector3 v 
) [friend]

Print out a vector.

Parameters:
os Outputstream
v Vector
Returns:
print out

Definition at line 227 of file matrix3.h.


Member Data Documentation

double Vector3::x[3]

Storage for three dimensions.

Definition at line 140 of file matrix3.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


active_realtime_segmentation
Author(s): Mårten Björkman. Maintained by Jeannette Bohg
autogenerated on Tue Mar 5 14:01:57 2013