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

Contents of /yodaUtility/sgp4/cVector.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Apr 30 11:08:15 2006 UTC (18 years, 7 months ago) by kusanagi
Branch point for: MAIN
File MIME type: text/plain
Initial revision

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