MgcVector3 Class Reference

#include <basic/geometry/geo_rangesensor/MgcVector3.h>

Collaboration diagram for MgcVector3:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MgcVector3 ()
 MgcVector3 (MgcReal fX, MgcReal fY, MgcReal fZ)
 MgcVector3 (MgcReal afCoordinate[3])
 MgcVector3 (const MgcVector3 &rkVector)
MgcRealoperator[] (int i) const
 operator MgcReal * ()
MgcVector3operator= (const MgcVector3 &rkVector)
bool operator== (const MgcVector3 &rkVector) const
bool operator!= (const MgcVector3 &rkVector) const
MgcVector3 operator+ (const MgcVector3 &rkVector) const
MgcVector3 operator- (const MgcVector3 &rkVector) const
MgcVector3 operator * (MgcReal fScalar) const
MgcVector3 operator/ (MgcReal fScalar) const
MgcVector3 operator- () const
MgcVector3operator+= (const MgcVector3 &rkVector)
MgcVector3operator-= (const MgcVector3 &rkVector)
MgcVector3operator *= (MgcReal fScalar)
MgcVector3operator/= (MgcReal fScalar)
MgcReal Length () const
MgcReal SquaredLength () const
MgcReal Dot (const MgcVector3 &rkVector) const
MgcReal Unitize (MgcReal fTolerance=1e-06)
MgcVector3 Cross (const MgcVector3 &rkVector) const
MgcVector3 UnitCross (const MgcVector3 &rkVector) const

Static Public Member Functions

static void Orthonormalize (MgcVector3 akVector[3])
static void GenerateOrthonormalBasis (MgcVector3 &rkU, MgcVector3 &rkV, MgcVector3 &rkW, bool bUnitLengthW=true)

Public Attributes

MgcReal x
MgcReal y
MgcReal z

Static Public Attributes

static const MgcVector3 ZERO
static const MgcVector3 UNIT_X
static const MgcVector3 UNIT_Y
static const MgcVector3 UNIT_Z

Friends

MgcVector3 operator * (MgcReal fScalar, const MgcVector3 &rkVector)

Detailed Description

Definition at line 19 of file MgcVector3.h.


Constructor & Destructor Documentation

MgcVector3::MgcVector3  ) 
 

Definition at line 22 of file MgcVector3.cpp.

Referenced by operator/().

MgcVector3::MgcVector3 MgcReal  fX,
MgcReal  fY,
MgcReal  fZ
 

Definition at line 28 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3::MgcVector3 MgcReal  afCoordinate[3]  ) 
 

Definition at line 35 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3::MgcVector3 const MgcVector3 rkVector  ) 
 

Definition at line 42 of file MgcVector3.cpp.

References x, y, and z.


Member Function Documentation

MgcVector3 MgcVector3::Cross const MgcVector3 rkVector  )  const
 

Definition at line 220 of file MgcVector3.cpp.

References x, y, and z.

Referenced by GenerateOrthonormalBasis(), and MgcTestIntersection().

MgcReal MgcVector3::Dot const MgcVector3 rkVector  )  const
 

Definition at line 153 of file MgcVector3.cpp.

References x, y, and z.

Referenced by FindIntersection(), MgcFindIntersection(), MgcSqrDistance(), MgcTestIntersection(), and Orthonormalize().

void MgcVector3::GenerateOrthonormalBasis MgcVector3 rkU,
MgcVector3 rkV,
MgcVector3 rkW,
bool  bUnitLengthW = true
[static]
 

Definition at line 270 of file MgcVector3.cpp.

References MgcMath::Abs(), Cross(), Unitize(), x, y, and z.

Referenced by FindIntersection().

Here is the call graph for this function:

MgcReal MgcVector3::Length  )  const
 

Definition at line 196 of file MgcVector3.cpp.

References MgcMath::Sqrt(), x, y, and z.

Referenced by Unitize().

Here is the call graph for this function:

MgcVector3 MgcVector3::operator * MgcReal  fScalar  )  const
 

Definition at line 97 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 & MgcVector3::operator *= MgcReal  fScalar  ) 
 

Definition at line 140 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3::operator MgcReal *  ) 
 

Definition at line 56 of file MgcVector3.cpp.

References x.

bool MgcVector3::operator!= const MgcVector3 rkVector  )  const
 

Definition at line 74 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 MgcVector3::operator+ const MgcVector3 rkVector  )  const
 

Definition at line 79 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 & MgcVector3::operator+= const MgcVector3 rkVector  ) 
 

Definition at line 124 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 MgcVector3::operator-  )  const
 

Definition at line 106 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 MgcVector3::operator- const MgcVector3 rkVector  )  const
 

Definition at line 88 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 & MgcVector3::operator-= const MgcVector3 rkVector  ) 
 

Definition at line 132 of file MgcVector3.cpp.

References x, y, and z.

MgcVector3 MgcVector3::operator/ MgcReal  fScalar  )  const
 

Definition at line 158 of file MgcVector3.cpp.

References MgcMath::INFINITY, MgcVector3(), x, y, and z.

Here is the call graph for this function:

MgcVector3 & MgcVector3::operator/= MgcReal  fScalar  ) 
 

Definition at line 177 of file MgcVector3.cpp.

References MgcMath::INFINITY, x, y, and z.

MgcVector3 & MgcVector3::operator= const MgcVector3 rkVector  ) 
 

Definition at line 61 of file MgcVector3.cpp.

References x, y, and z.

bool MgcVector3::operator== const MgcVector3 rkVector  )  const
 

Definition at line 69 of file MgcVector3.cpp.

References x, y, and z.

MgcReal & MgcVector3::operator[] int  i  )  const
 

Definition at line 49 of file MgcVector3.cpp.

References x.

void MgcVector3::Orthonormalize MgcVector3  akVector[3]  )  [static]
 

Definition at line 243 of file MgcVector3.cpp.

References Dot(), and Unitize().

Here is the call graph for this function:

MgcReal MgcVector3::SquaredLength  )  const
 

Definition at line 148 of file MgcVector3.cpp.

References x, y, and z.

Referenced by MgcSqrDistance().

MgcVector3 MgcVector3::UnitCross const MgcVector3 rkVector  )  const
 

Definition at line 231 of file MgcVector3.cpp.

References Unitize(), x, y, and z.

Here is the call graph for this function:

MgcReal MgcVector3::Unitize MgcReal  fTolerance = 1e-06  ) 
 

Definition at line 201 of file MgcVector3.cpp.

References Length(), x, y, and z.

Referenced by GenerateOrthonormalBasis(), Orthonormalize(), and UnitCross().

Here is the call graph for this function:


Friends And Related Function Documentation

MgcVector3 operator * MgcReal  fScalar,
const MgcVector3 rkVector
[friend]
 

Definition at line 115 of file MgcVector3.cpp.


Member Data Documentation

const MgcVector3 MgcVector3::UNIT_X [static]
 

Definition at line 71 of file MgcVector3.h.

const MgcVector3 MgcVector3::UNIT_Y [static]
 

Definition at line 72 of file MgcVector3.h.

const MgcVector3 MgcVector3::UNIT_Z [static]
 

Definition at line 73 of file MgcVector3.h.

MgcReal MgcVector3::x
 

Definition at line 29 of file MgcVector3.h.

Referenced by Range_Sensor::AddBoxToDepthMap(), Range_Sensor::AddCylinderToDepthMap(), Range_Sensor::AddSphereToDepthMap(), Cross(), Dot(), GenerateOrthonormalBasis(), Length(), MgcContAlignedBox(), MgcFindIntersection(), MgcGaussPointsFit(), MgcVector3(), operator *(), operator *(), operator *=(), operator MgcReal *(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), operator[](), SquaredLength(), UnitCross(), and Unitize().

MgcReal MgcVector3::y
 

Definition at line 29 of file MgcVector3.h.

Referenced by Range_Sensor::AddBoxToDepthMap(), Range_Sensor::AddCylinderToDepthMap(), Range_Sensor::AddSphereToDepthMap(), Cross(), Dot(), GenerateOrthonormalBasis(), Length(), MgcContAlignedBox(), MgcFindIntersection(), MgcVector3(), operator *(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), SquaredLength(), UnitCross(), and Unitize().

MgcReal MgcVector3::z
 

Definition at line 29 of file MgcVector3.h.

Referenced by Range_Sensor::AddBoxToDepthMap(), Range_Sensor::AddCylinderToDepthMap(), Range_Sensor::AddSphereToDepthMap(), Cross(), Dot(), GenerateOrthonormalBasis(), Length(), MgcContAlignedBox(), MgcFindIntersection(), MgcVector3(), operator *(), operator *(), operator *=(), operator!=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), operator==(), SquaredLength(), UnitCross(), and Unitize().

const MgcVector3 MgcVector3::ZERO [static]
 

Definition at line 70 of file MgcVector3.h.


The documentation for this class was generated from the following files:
Generated on Sat Apr 1 21:51:43 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO