Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Vector3 Class Reference

#include <Vector3.h>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

A 3D vector.

Definition at line 13 of file Vector3.h.


Constructor & Destructor Documentation

Vector3::Vector3  )  [inline]
 

The default constructor, sets the vector to 0.

Definition at line 16 of file Vector3.h.

Vector3::Vector3 real  x,
real  y,
real  z
[inline]
 

Constructor.

Definition at line 18 of file Vector3.h.

virtual Vector3::~Vector3  )  [inline, virtual]
 

Destructor; does nothing.

Definition at line 20 of file Vector3.h.


Member Function Documentation

real Vector3::getModule  )  [inline]
 

Gets the module of the vector: sqrt(x^2+y^2+z^2).

Definition at line 44 of file Vector3.h.

References real.

real Vector3::getSquaredModule  )  [inline]
 

Gets the squared module of the vector: x^2+y^2+z^2.

Definition at line 47 of file Vector3.h.

References real.

Vector3& Vector3::operator *= const real  r  )  [inline]
 

Definition at line 74 of file Vector3.h.

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

Definition at line 72 of file Vector3.h.

References x, y, and z.

Vector3& Vector3::operator-= const Vector3 v  )  [inline]
 

Definition at line 73 of file Vector3.h.

References x, y, and z.

Vector3& Vector3::operator/= const real  r  )  [inline]
 

Definition at line 75 of file Vector3.h.

real Vector3::operator[] int  i  )  [inline]
 

Gets element i; i is numbered starting from 0 (i=0,1,2).

Definition at line 63 of file Vector3.h.

References real.

void Vector3::rotate real  alpha  )  [inline]
 

Rotates the spatial part of the vector with angle alpha. If the vector is initially expressed in a reference system rotated with alpha relative to the laboratory reference system, after rotation the vector will be expressed in the laboratory reference system.

Definition at line 53 of file Vector3.h.

References real.

void Vector3::setElement int  i,
real  value
[inline]
 

Sets element i to value value; i is numbered starting from 1 (i=1,2,3).

Definition at line 33 of file Vector3.h.

Referenced by ArticulatedAgentBase::solveSystem().

void Vector3::setToZero  )  [inline]
 

Sets the vector to 0.

Definition at line 27 of file Vector3.h.

void Vector3::setXYZ real  x,
real  y,
real  z
[inline]
 

Sets x, y and z components.

Definition at line 30 of file Vector3.h.

Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), and ArticulatedAgentQuasistatic::forwardAccelerations().


Member Data Documentation

real Vector3::x
 

Definition at line 22 of file Vector3.h.

Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), ArticulatedAgentQuasistatic::computeBodyDerivativesWithoutContacts(), ArticulatedLink::computeForceQuasistatic(), Iunctus::controll(), ArticulatedAgentQuasistatic::forwardAccelerations(), operator+=(), operator-=(), and Matrix3::setColumn().

real Vector3::y
 

Definition at line 23 of file Vector3.h.

Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), ArticulatedAgentQuasistatic::computeBodyDerivativesWithoutContacts(), ArticulatedLink::computeForceQuasistatic(), Iunctus::controll(), ArticulatedAgentQuasistatic::forwardAccelerations(), operator+=(), operator-=(), and Matrix3::setColumn().

real Vector3::z
 

Definition at line 24 of file Vector3.h.

Referenced by ArticulatedAgentQuasistatic::backwardDynamics(), ArticulatedAgentQuasistatic::computeBodyDerivativesWithoutContacts(), ArticulatedLink::computeForceQuasistatic(), Iunctus::controll(), ArticulatedAgentQuasistatic::forwardAccelerations(), operator+=(), operator-=(), and Matrix3::setColumn().


The documentation for this class was generated from the following file:

Thyrix homepageUsers' guide

(C) Arxia 2004-2005