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

univcoord.cpp File Reference

#include <iostream>
#include <cmath>
#include <celmath/mathlib.h>
#include "univcoord.h"

Include dependency graph for univcoord.cpp:

Go to the source code of this file.

Functions

UniversalCoord operator+ (const UniversalCoord &uc0, const UniversalCoord &uc1)
UniversalCoord operator+ (const UniversalCoord &uc, const Vec3f &v)
UniversalCoord operator+ (const UniversalCoord &uc, const Vec3d &v)
UniversalCoord operator- (const UniversalCoord &uc, const Vec3f &v)
UniversalCoord operator- (const UniversalCoord &uc, const Vec3d &v)
Vec3f operator- (const Point3f &p, const UniversalCoord &uc)
Vec3f operator- (const UniversalCoord &uc, const Point3f &p)
Vec3d operator- (const Point3d &p, const UniversalCoord &uc)
Vec3d operator- (const UniversalCoord &uc, const Point3d &p)
Vec3d operator- (const UniversalCoord &uc0, const UniversalCoord &uc1)


Function Documentation

UniversalCoord operator+ const UniversalCoord uc0,
const UniversalCoord uc1
 

Definition at line 120 of file univcoord.cpp.

00121 {
00122     return UniversalCoord(uc0.x + uc1.x, uc0.y + uc1.y, uc0.z + uc1.z);
00123 }

UniversalCoord operator+ const UniversalCoord uc,
const Vec3f v
 

Definition at line 99 of file univcoord.cpp.

00100 {
00101     return UniversalCoord(uc.x + BigFix((double) v.x),
00102                           uc.y + BigFix((double) v.y),
00103                           uc.z + BigFix((double) v.z));
00104 }

UniversalCoord operator+ const UniversalCoord uc,
const Vec3d v
 

Definition at line 92 of file univcoord.cpp.

00093 {
00094     return UniversalCoord(uc.x + (BigFix) v.x,
00095                           uc.y + (BigFix) v.y,
00096                           uc.z + (BigFix) v.z);
00097 }

UniversalCoord operator- const UniversalCoord uc,
const Vec3f v
 

Definition at line 113 of file univcoord.cpp.

00114 {
00115     return UniversalCoord(uc.x - BigFix((double) v.x),
00116                           uc.y - BigFix((double) v.y),
00117                           uc.z - BigFix((double) v.z));
00118 }

UniversalCoord operator- const UniversalCoord uc,
const Vec3d v
 

Definition at line 106 of file univcoord.cpp.

00107 {
00108     return UniversalCoord(uc.x - BigFix(v.x),
00109                           uc.y - BigFix(v.y),
00110                           uc.z - BigFix(v.z));
00111 }

Vec3f operator- const Point3f p,
const UniversalCoord uc
 

Definition at line 85 of file univcoord.cpp.

00086 {
00087     return Vec3f((float) ((BigFix) p.x - uc.x),
00088                  (float) ((BigFix) p.y - uc.y),
00089                  (float) ((BigFix) p.z - uc.z));
00090 }

Vec3f operator- const UniversalCoord uc,
const Point3f p
 

Definition at line 78 of file univcoord.cpp.

00079 {
00080     return Vec3f((float) (uc.x - (BigFix) p.x),
00081                  (float) (uc.y - (BigFix) p.y),
00082                  (float) (uc.z - (BigFix) p.z));
00083 }

Vec3d operator- const Point3d p,
const UniversalCoord uc
 

Definition at line 71 of file univcoord.cpp.

00072 {
00073     return Vec3d((double) ((BigFix) p.x - uc.x),
00074                  (double) ((BigFix) p.y - uc.y),
00075                  (double) ((BigFix) p.z - uc.z));
00076 }

Vec3d operator- const UniversalCoord uc,
const Point3d p
 

Definition at line 64 of file univcoord.cpp.

00065 {
00066     return Vec3d((double) (uc.x - (BigFix) p.x),
00067                  (double) (uc.y - (BigFix) p.y),
00068                  (double) (uc.z - (BigFix) p.z));
00069 }

Vec3d operator- const UniversalCoord uc0,
const UniversalCoord uc1
 

Definition at line 57 of file univcoord.cpp.

00058 {
00059     return Vec3d((double) (uc0.x - uc1.x),
00060                  (double) (uc0.y - uc1.y),
00061                  (double) (uc0.z - uc1.z));
00062 }


Generated on Sat Jan 14 22:31:27 2006 for Celestia by  doxygen 1.4.1