orsa_coord.h File Reference

#include <vector>
#include <cmath>
#include <limits>

Include dependency graph for orsa_coord.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  orsa

Functions

Vector operator * (const double f, const Vector &v)
Vector operator * (const Vector &v, const double f)
Vector operator/ (const Vector &v, const double f)
Vector operator+ (const Vector &u, const Vector &v)
Vector operator- (const Vector &u, const Vector &v)
Vector ExternalProduct (const Vector &u, const Vector &v)
Vector Cross (const Vector &u, const Vector &v)
double operator * (const Vector &u, const Vector &v)
bool operator== (const Vector &v1, const Vector &v2)
bool operator!= (const Vector &v1, const Vector &v2)


Function Documentation

Vector Cross const Vector &  u,
const Vector &  v
[inline]
 

Definition at line 182 of file orsa_coord.h.

Referenced by orsa::Compute_Gauss().

00182                                                          {
00183     return Vector (u.y*v.z-u.z*v.y,
00184                    u.z*v.x-u.x*v.z,
00185                    u.x*v.y-u.y*v.x); 
00186   }

Vector ExternalProduct const Vector &  u,
const Vector &  v
[inline]
 

Definition at line 176 of file orsa_coord.h.

Referenced by Newton::Acceleration(), orsa::AngularMomentum(), Orbit::Compute(), and orsa::SearchCloseApproaches().

00176                                                                    {
00177     return Vector (u.y*v.z-u.z*v.y,
00178                    u.z*v.x-u.x*v.z,
00179                    u.x*v.y-u.y*v.x); 
00180   }

double operator * const Vector &  u,
const Vector &  v
[inline]
 

Definition at line 189 of file orsa_coord.h.

00189                                                               {
00190     return (u.x*v.x+
00191             u.y*v.y+
00192             u.z*v.z);
00193   }  

Vector operator * const Vector &  v,
const double  f
[inline]
 

Definition at line 156 of file orsa_coord.h.

00156                                                               {
00157     return Vector(v.x*f, v.y*f, v.z*f);
00158   }

Vector operator * const double  f,
const Vector &  v
[inline]
 

Definition at line 152 of file orsa_coord.h.

00152                                                               {
00153     return Vector(v.x*f, v.y*f, v.z*f);
00154   }

bool operator!= const Vector &  v1,
const Vector &  v2
[inline]
 

Definition at line 202 of file orsa_coord.h.

00202                                                                {
00203     return !(v1 == v2);
00204   }

Vector operator+ const Vector &  u,
const Vector &  v
[inline]
 

Definition at line 164 of file orsa_coord.h.

00164                                                               {
00165     return Vector(u.x+v.x,
00166                   u.y+v.y,
00167                   u.z+v.z);
00168   }

Vector operator- const Vector &  u,
const Vector &  v
[inline]
 

Definition at line 170 of file orsa_coord.h.

00170                                                               {
00171     return Vector(u.x-v.x,
00172                   u.y-v.y,
00173                   u.z-v.z);
00174   }

Vector operator/ const Vector &  v,
const double  f
[inline]
 

Definition at line 160 of file orsa_coord.h.

00160                                                               {
00161     return Vector(v.x/f, v.y/f, v.z/f); 
00162   }

bool operator== const Vector &  v1,
const Vector &  v2
[inline]
 

Definition at line 195 of file orsa_coord.h.

00195                                                                {
00196     if (v1.x != v2.x) return false;
00197     if (v1.y != v2.y) return false;
00198     if (v1.z != v2.z) return false;
00199     return true;
00200   }


Generated on Tue Jan 11 15:26:43 2005 for liborsa by  doxygen 1.4.0