Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

math/vector3.cpp File Reference

#include "vector3.h"
#include "matrix4.h"
#include <glt/gl.h>
#include <glt/glu.h>
#include <glt/viewport.h>
#include <misc/string.h>
#include <cassert>
#include <cmath>
#include <iostream>
#include <algorithm>

Include dependency graph for vector3.cpp:

Include dependency graph

Go to the source code of this file.


ostream & operator<< (ostream &os, const Vector &x)
 Output vector to stream.

istream & operator>> (istream &is, Vector &x)
 Input vector from stream.

Vector operator * (const real x, const Vector &v)
 Vector scale.

Vector operator * (const Vector &v, const real x)
 Vector scale.

Vector operator/ (const Vector &v, const real x)
 Vector inverse scale.

Vector operator+ (const Vector &v1, const Vector &v2)
 Vector addition.

Vector operator- (const Vector &v1, const Vector &v2)
 Vector difference.

Vector xProduct (const Vector &v1, const Vector &v2)
 Vector cross product.

Vector planeNormal (const Vector &v1, const Vector &v2, const Vector &v3)
 Calculate normal from three points in plane.

Vector polar (const real lat, const real longitude)
 Location on unit sphere.

void orthogonalSystem (Vector &a, Vector &b, Vector &c)
 Create orthogonal co-ordinate system, based on a.

Detailed Description

Definition in file vector3.cpp.

Generated on Tue Nov 5 11:11:26 2002 for GLT by doxygen1.2.18