Physsim::Vector3 Class Reference

A three-dimensional floating point vector. More...

#include <Vector3.h>

Inheritance diagram for Physsim::Vector3:

Physsim::VectorN List of all members.

Public Member Functions

 Vector3 ()
 Default constructor -- vector will be uninitialized.
 Vector3 (Real x, Real y, Real z)
 Constructs this vector with the given values.
 Vector3 (const boost::shared_array< Real > array)
 Constructs this vector from the given array.
 Vector3 (const Vector3 &source)
 Copy constructor.
 Vector3 (const VectorN &source)
 Copy constructor.
void cross (const Vector3 &v)
 Computes the cross-product between this vector and another and stores the result in this.
void operator= (const Vector3 &source)
virtual void operator= (const VectorN &source)

Static Public Member Functions

static Vector3 cross (const Vector3 &v1, const Vector3 &v2)
 Computes the cross-product of two vectors.
static void det_orthonormal_basis (const Vector3 &v1, Vector3 &v2, Vector3 &v3)
 Computes an orthonormal basis, given a single vector.

Detailed Description

A three-dimensional floating point vector.


Constructor & Destructor Documentation

Vector3::Vector3 ( const boost::shared_array< Real >  array  ) 

Constructs this vector from the given array.

Parameters:
array a 3-dimensional (or larger) array

Vector3::Vector3 ( const VectorN source  ) 

Copy constructor.

Parameters:
source a 3-dimensional vector


Member Function Documentation

void Vector3::cross ( const Vector3 v  ) 

Computes the cross-product between this vector and another and stores the result in this.

Order of operator: *this x v

void Vector3::det_orthonormal_basis ( const Vector3 v1,
Vector3 v2,
Vector3 v3 
) [static]

Computes an orthonormal basis, given a single vector.

Returns:
an orthonormal basis constructed from a single 3D vector, v1; v1 x v2 = v3


The documentation for this class was generated from the following files:
Generated on Wed Oct 24 14:54:23 2007 for Physsim by  doxygen 1.5.1