Vector4 Class Reference

#include <math/Vector4.h>

List of all members.

Public Member Functions

 Vector4 ()
 Vector4 (const Vector4 &right)
 Vector4 (const double x, const double y, const double z)
 ~Vector4 ()
double & operator[] (const unsigned int index)
Vector4 operator+ (const Vector4 &right) const
Vector4 operator- (const Vector4 &right) const
Vector4operator-= (const Vector4 &right)
Vector4 operator * (const double right) const
Vector4 operator/ (const double right) const
const double operator[] (const unsigned int index) const
double Magnitude () const
double MagSquared () const
double Dot (const Vector4 &right) const
Vector4 Cross (const Vector4 &right) const
Vector4 Projection (const Vector4 &right) const
double ProjectionMag (const Vector4 &right) const
void Reflect (const Vector4 &normal)
bool operator== (const Vector4 &right) const
bool operator< (const Vector4 &right) const
void Normalize ()
bool Compare (const Vector4 &right, const double &tol) const
bool operator!= (const Vector4 &right) const
Vector4operator+= (const Vector4 &right)
Vector4operator *= (const double right)
Vector4operator/= (const double right)
Vector4 operator- () const

Protected Attributes

double elements [3]


Detailed Description

Definition at line 9 of file Vector4.h.


Constructor & Destructor Documentation

Vector4::Vector4  ) 
 

Definition at line 7 of file Vector4.cpp.

References elements.

Referenced by operator *(), operator+(), operator-(), and operator/().

Vector4::Vector4 const Vector4 right  ) 
 

Definition at line 14 of file Vector4.cpp.

References elements.

Vector4::Vector4 const double  x,
const double  y,
const double  z
[inline]
 

Definition at line 135 of file Vector4.h.

References elements.

Vector4::~Vector4  )  [inline]
 

Definition at line 147 of file Vector4.h.


Member Function Documentation

bool Vector4::Compare const Vector4 right,
const double &  tol
const
 

Definition at line 153 of file Vector4.cpp.

References elements.

Vector4 Vector4::Cross const Vector4 right  )  const
 

Definition at line 82 of file Vector4.cpp.

References elements.

Referenced by MPK::Segment::IsInterfering().

double Vector4::Dot const Vector4 right  )  const
 

Definition at line 72 of file Vector4.cpp.

References elements.

Referenced by Segment::DistanceSquared(), PL_RGD_PRM::Error4(), MPK::Segment::IsInterfering(), ProjectionMag(), and IGS_Mesh::Render().

double Vector4::Magnitude  )  const
 

Definition at line 62 of file Vector4.cpp.

References elements.

Referenced by IGS_MeshBase::AddVertexCoordinates(), PL_MPEP::AdjustConfiguration(), PL_ForTest::AdjustConfiguration(), IGS_Mesh::ComputeNormalForFacet(), IGS_MeshTri::ComputeNormalForTriangle(), IK_Jacobian::Distance(), PL_PRM_ClosedBase::Error(), PL_PRM_ClosedChain::Error(), PL_RGD_PRM::Error1(), PL_PRM_ClosedChain::Error1(), PL_RGD_PRM::Error2(), PL_PRM_ClosedChain::Error2(), PL_PRM_ClosedChain::Error3(), PL_RGD_PRM::Error5(), PL_ATACE::GetNextPose(), PL_PRM_ClosedJacobian::MakeItClosed(), Normalize(), VrmlCoordinate3::Parse(), and PL_ATACE::SetCollisionDetector().

double Vector4::MagSquared  )  const
 

Definition at line 67 of file Vector4.cpp.

References elements.

Referenced by Segment::DistanceSquared(), PL_PRM_ClosedChain::Error1(), IK_ACA::FrameDistance(), and MPK::Segment::IsInterfering().

void Vector4::Normalize  ) 
 

Definition at line 169 of file Vector4.cpp.

References Magnitude().

Referenced by IGS_Mesh::ComputeNormalForFacet(), IGS_MeshTri::ComputeNormalForTriangle(), GL_Mesh::ComputeNormals(), VrmlIndexedFaceSet::ComputeNormals(), PL_RGD_PRM::Error1(), PL_PRM_ClosedChain::Error3(), and PL_RGD_PRM::Error5().

Here is the call graph for this function:

Vector4 Vector4::operator * const double  right  )  const
 

Definition at line 46 of file Vector4.cpp.

References elements, and Vector4().

Here is the call graph for this function:

Vector4 & Vector4::operator *= const double  right  ) 
 

Definition at line 202 of file Vector4.cpp.

References elements.

bool Vector4::operator!= const Vector4 right  )  const
 

Definition at line 192 of file Vector4.cpp.

References operator==().

Here is the call graph for this function:

Vector4 Vector4::operator+ const Vector4 right  )  const
 

Definition at line 21 of file Vector4.cpp.

References elements, and Vector4().

Here is the call graph for this function:

Vector4 & Vector4::operator+= const Vector4 right  )  [inline]
 

Definition at line 122 of file Vector4.h.

References elements.

Vector4 Vector4::operator-  )  const
 

Definition at line 232 of file Vector4.cpp.

References elements, and Vector4().

Here is the call graph for this function:

Vector4 Vector4::operator- const Vector4 right  )  const
 

Definition at line 29 of file Vector4.cpp.

References elements, and Vector4().

Here is the call graph for this function:

Vector4 & Vector4::operator-= const Vector4 right  ) 
 

Definition at line 38 of file Vector4.cpp.

Vector4 Vector4::operator/ const double  right  )  const
 

Definition at line 54 of file Vector4.cpp.

References elements, and Vector4().

Here is the call graph for this function:

Vector4 & Vector4::operator/= const double  right  ) 
 

Definition at line 217 of file Vector4.cpp.

References elements.

bool Vector4::operator< const Vector4 right  )  const
 

Definition at line 186 of file Vector4.cpp.

bool Vector4::operator== const Vector4 right  )  const
 

Definition at line 127 of file Vector4.cpp.

Referenced by operator!=().

const double Vector4::operator[] const unsigned int  index  )  const [inline]
 

Definition at line 110 of file Vector4.h.

References elements, and IJG_Assert.

double & Vector4::operator[] const unsigned int  index  )  [inline]
 

Definition at line 103 of file Vector4.h.

References elements, and IJG_Assert.

Vector4 Vector4::Projection const Vector4 right  )  const
 

Definition at line 98 of file Vector4.cpp.

References ProjectionMag().

Referenced by MPK::Segment::IsInterfering(), and Reflect().

Here is the call graph for this function:

double Vector4::ProjectionMag const Vector4 right  )  const
 

Definition at line 104 of file Vector4.cpp.

References Dot().

Referenced by MPK::Segment::IsInterfering(), and Projection().

Here is the call graph for this function:

void Vector4::Reflect const Vector4 normal  ) 
 

Definition at line 121 of file Vector4.cpp.

References Projection().

Here is the call graph for this function:


Member Data Documentation

double Vector4::elements[3] [protected]
 

Definition at line 93 of file Vector4.h.

Referenced by Compare(), Cross(), Dot(), Magnitude(), MagSquared(), operator *(), operator *=(), operator+(), operator+=(), operator-(), operator/(), operator/=(), operator[](), and Vector4().


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