source: Sophya/trunk/SophyaLib/Samba/unitvector.h@ 262

Last change on this file since 262 was 262, checked in by ansari, 26 years ago

Ajout de fichiers de calcul de geometrie Vector3d, UnitVector, Circle, de Benoit Revenu Reza 23/04/99

File size: 588 bytes
Line 
1#ifndef UNITVECTOR_H_SEEN
2#define UNITVECTOR_H_SEEN
3
4#include <iostream.h>
5#include <stdio.h>
6#include <string.h>
7#include "vector3d.h"
8
9class UnitVector : public Vector3d
10{
11
12 public:
13
14 UnitVector();
15 UnitVector(double x, double y, double z);
16 UnitVector(double theta, double phi=0);
17 UnitVector(const Vector3d&);
18
19 Vector3d& operator=(const Vector3d&);
20 Vector3d& operator+=(const Vector3d&);
21 Vector3d& operator-=(const Vector3d&);
22 Vector3d operator+(const Vector3d&) const;
23 Vector3d operator-(const Vector3d&) const;
24
25 void Print(ostream& os) const;
26
27};
28
29#endif
30
31
Note: See TracBrowser for help on using the repository browser.