#include <Vec3r.h>
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 |
Definition at line 71 of file Vec3r.h.
|
default - (0,0,0)
|
|
|
|
|
|
|
|
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(). |
|
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(). |
|
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(). |
|
|
|
|
|
Definition at line 189 of file Vec3r.cpp. References opal::areEqual(), x, y, and z. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 177 of file Vec3r.cpp. References opal::areEqual(), x, y, and z. |
|
|
|
|
|
|
|
Definition at line 66 of file Vec3r.cpp. Referenced by opal::Rayr::Rayr(), and opal::InclineSensor::setupInternalVectors(). |
|
Definition at line 130 of file Vec3r.cpp. References length(). Referenced by opal::ODESimulator::internal_fireRay(). |
|
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(). |
|
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(). |
|
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(). |