opal::Vec3r Class Reference

#include <Vec3r.h>

List of all members.

Public Member Functions

OPAL_DECL Vec3r ()
OPAL_DECL Vec3r (const Vec3r &src)
OPAL_DECL Vec3r (real xx, real yy, real zz)
OPAL_DECL Vec3r (const real *data)
OPAL_DECL void OPAL_CALL set (real xx, real yy, real zz)
OPAL_DECL void OPAL_CALL set (real *data)
OPAL_DECL real &OPAL_CALL operator[] (unsigned int i)
OPAL_DECL const real &OPAL_CALL operator[] (unsigned int i) const
OPAL_DECL real OPAL_CALL lengthSquared () const
OPAL_DECL real OPAL_CALL length () const
OPAL_DECL void OPAL_CALL normalize ()
OPAL_DECL Vec3r OPAL_CALL unit () const
OPAL_DECL void OPAL_CALL operator+= (const Vec3r &v)
OPAL_DECL void OPAL_CALL operator-= (const Vec3r &v)
OPAL_DECL void OPAL_CALL operator *= (const Vec3r &v)
OPAL_DECL void OPAL_CALL operator *= (real scalar)
OPAL_DECL void OPAL_CALL operator/= (real scalar)
OPAL_DECL void OPAL_CALL operator/= (const Vec3r &v)
OPAL_DECL bool OPAL_CALL operator== (const Vec3r &v) const
OPAL_DECL bool OPAL_CALL operator!= (const Vec3r &v) const
OPAL_DECL void OPAL_CALL operator= (const Vec3r &v)

Public Attributes

real x
real y
real z


Detailed Description

Definition at line 71 of file Vec3r.h.


Constructor & Destructor Documentation

opal::Vec3r::Vec3r  ) 
 

default - (0,0,0)

Definition at line 38 of file Vec3r.cpp.

References x, y, and z.

opal::Vec3r::Vec3r const Vec3r src  ) 
 

Definition at line 45 of file Vec3r.cpp.

References x, y, and z.

opal::Vec3r::Vec3r real  xx,
real  yy,
real  zz
 

Definition at line 52 of file Vec3r.cpp.

References x, y, and z.

opal::Vec3r::Vec3r const real data  ) 
 

Definition at line 59 of file Vec3r.cpp.

References x, y, and z.


Member Function Documentation

real opal::Vec3r::length  )  const
 

Definition at line 117 of file Vec3r.cpp.

References opal::dot().

Referenced by opal::ODEJoint::calcStress(), opal::Rayr::getLength(), opal::VelocityMotor::internal_update(), opal::AttractorMotor::internal_update(), normalize(), and unit().

real opal::Vec3r::lengthSquared  )  const
 

Definition at line 112 of file Vec3r.cpp.

References opal::dot().

Referenced by opal::Solid::addForce(), opal::ODESolid::internal_doAngularVelFix(), opal::SpringMotor::internal_update(), opal::AttractorMotor::internal_update(), opal::SpringMotor::setDesiredOrientation(), and opal::SpringMotor::setDesiredTransform().

void opal::Vec3r::normalize  ) 
 

Definition at line 122 of file Vec3r.cpp.

References length().

Referenced by opal::angleBetween(), opal::areCollinear(), opal::SpringMotor::internal_update(), opal::AttractorMotor::internal_update(), opal::Matrix44r::makeRotation(), opal::project(), opal::ODEJoint::setAxis(), opal::SpringMotor::setDesiredOrientation(), and opal::SpringMotor::setDesiredTransform().

void opal::Vec3r::operator *= real  scalar  ) 
 

Definition at line 156 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::operator *= const Vec3r v  ) 
 

Definition at line 149 of file Vec3r.cpp.

References x, y, and z.

bool opal::Vec3r::operator!= const Vec3r v  )  const
 

Definition at line 189 of file Vec3r.cpp.

References opal::areEqual(), x, y, and z.

void opal::Vec3r::operator+= const Vec3r v  ) 
 

Definition at line 135 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::operator-= const Vec3r v  ) 
 

Definition at line 142 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::operator/= const Vec3r v  ) 
 

Definition at line 170 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::operator/= real  scalar  ) 
 

Definition at line 163 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::operator= const Vec3r v  ) 
 

Definition at line 182 of file Vec3r.cpp.

References x, y, and z.

bool opal::Vec3r::operator== const Vec3r v  )  const
 

Definition at line 177 of file Vec3r.cpp.

References opal::areEqual(), x, y, and z.

const real & opal::Vec3r::operator[] unsigned int  i  )  const
 

Definition at line 96 of file Vec3r.cpp.

References x, y, and z.

real & opal::Vec3r::operator[] unsigned int  i  ) 
 

Definition at line 80 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::set real data  ) 
 

Definition at line 73 of file Vec3r.cpp.

References x, y, and z.

void opal::Vec3r::set real  xx,
real  yy,
real  zz
 

Definition at line 66 of file Vec3r.cpp.

References x, y, and z.

Referenced by opal::Rayr::Rayr(), and opal::InclineSensor::setupInternalVectors().

Vec3r opal::Vec3r::unit  )  const
 

Definition at line 130 of file Vec3r.cpp.

References length().

Referenced by opal::ODESimulator::internal_fireRay().


Member Data Documentation

real opal::Vec3r::x
 

x-coordinate

Definition at line 75 of file Vec3r.h.

Referenced by opal::areCollinear(), opal::dot(), opal::Quaternion::getAngleAxis(), opal::operator *(), operator *=(), operator!=(), opal::operator%(), opal::operator+(), operator+=(), opal::Point3r::operator+=(), opal::operator-(), operator-=(), opal::Point3r::operator-=(), opal::operator/(), operator/=(), opal::operator<<(), operator=(), operator==(), operator[](), set(), opal::ODESolid::setMass(), opal::Matrix44r::setQuaternion(), and Vec3r().

real opal::Vec3r::y
 

y-coordinate

Definition at line 78 of file Vec3r.h.

Referenced by opal::areCollinear(), opal::dot(), opal::Quaternion::getAngleAxis(), opal::operator *(), operator *=(), operator!=(), opal::operator%(), opal::operator+(), operator+=(), opal::Point3r::operator+=(), opal::operator-(), operator-=(), opal::Point3r::operator-=(), opal::operator/(), operator/=(), opal::operator<<(), operator=(), operator==(), operator[](), set(), opal::ODESolid::setMass(), opal::Matrix44r::setQuaternion(), and Vec3r().

real opal::Vec3r::z
 

z-coordinate

Definition at line 81 of file Vec3r.h.

Referenced by opal::areCollinear(), opal::dot(), opal::Quaternion::getAngleAxis(), opal::operator *(), operator *=(), operator!=(), opal::operator%(), opal::operator+(), operator+=(), opal::Point3r::operator+=(), opal::operator-(), operator-=(), opal::Point3r::operator-=(), opal::operator/(), operator/=(), opal::operator<<(), operator=(), operator==(), operator[](), set(), opal::ODESolid::setMass(), opal::Matrix44r::setQuaternion(), and Vec3r().


The documentation for this class was generated from the following files:
Generated on Tue May 16 17:49:58 2006 for OPAL by  doxygen 1.4.6-NO