/[PAMELA software]/yodaUtility/sgp4/cVector.h
ViewVC logotype

Annotation of /yodaUtility/sgp4/cVector.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Sun Apr 30 11:08:15 2006 UTC (18 years, 7 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaUtility2_0/00, yodaUtility1_0/00, yodaUtility2_2/00, yodaUtility2_1/00, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
Various utilities for the yoda environment and its related softwares.
YFile 	   	- Inheriths from TFile     - Add custom features to a TFile object.
YException 	- Inheriths from exception - YODA specific Exceptions.
YMcmd	   	- Decoder for the Mcmd packets.
YSQLConnection 	- Singletn class for DB connections.
yodaUtility     - Various functions.
sgp4		- C++ NORAD SGP4/SDP4 Implementation - Developed by Michael F. Henry.

1 kusanagi 1.1 // cVector.h: interface for the cVector class.
2     //
3     // Copyright 2003 (c) Michael F. Henry
4     //
5     //////////////////////////////////////////////////////////////////////
6     #pragma once
7    
8     class cVector
9     {
10     public:
11     cVector(double x = 0.0, double y = 0.0, double z = 0.0, double w = 0.0) :
12     m_x(x), m_y(y), m_z(z), m_w(w) {}
13     virtual ~cVector() {};
14    
15     void Sub(const cVector&); // subtraction
16     void Mul(double factor); // multiply each component by 'factor'
17    
18     double Angle(const cVector&) const; // angle between two vectors
19     double Magnitude() const; // vector magnitude
20     double Dot(const cVector& vec) const; // dot product
21    
22     // protected:
23     double m_x;
24     double m_y;
25     double m_z;
26     double m_w;
27     };

  ViewVC Help
Powered by ViewVC 1.1.23