Class hierarchy   Compound list   File list   Compound Members   File Members  

Vector Class Reference

mathematical 3d-vector. More...

List of all members.

Public Members


Detailed Description

mathematical 3d-vector.

This class is directly written to and read from files.

It may only contain the three coordinates, and nothing more that requires storage memory, like virtual functions.


Member Function Documentation

Vector::Vector()

Vector::Vector(const Vector &)

ctor: copy from other vector

Vector::Vector(Vector &, Vector &)

ctor: be the normal vector to those

Vector::Vector(rvfloat x, rvfloat y, rvfloat z)

ctor: spec. x,y,z

Vector Vector::operator -(Vector &)

Vector Vector::operator +(Vector &)

bool Vector::operator <=(Vector &)

Is a x1<x2 && y1<y2 && z1<z2

Vector Vector::operator *(rvfloat scalefac)

scales a vector by scalefac

Vector Vector::operator /(rvfloat scalediv)

scales a vector by scalediv

Vector Vector::operator *(Vector &)

cross product (result is a (not the) normal vector to this and the argument vector)

bool Vector::operator ==(Vector &)

equal op. Does return true for close vectors, too

bool Vector::operator !=(Vector &)

rvfloat Vector::length(void)

rvfloat Vector::lengthXZ(void)

bool Vector::normalize(void)

tries to rescale a vector to have length 1.0

Returns:
true if successfull false if vector is too small for rescaling

bool Vector::normalizeXZ(void)

rvfloat Vector::scalarprod(Vector &)

scalar product

rvfloat Vector::scalarprod_xz(Vector &)

scalar product ignoring Y

void Vector::rotate_right_xz(void)

rotates the vector by 90 degrees in the X-Z-plane

rvfloat& Vector::x(void)

rvfloat& Vector::y(void)

rvfloat& Vector::z(void)

rvfloat Vector::x(rvfloat)

rvfloat Vector::y(rvfloat)

rvfloat Vector::z(rvfloat)

inline rvfloat& Vector::operator [](int i)


Member Data Documentation

rvfloat Vector::coord[3]


The documentation for this class was generated from the following files:
Generated at Wed May 31 21:08:20 2000 for Rvtmod/rvglue by doxygen  written by Dimitri van Heesch, © 1997-1998