Last change
on this file since 2765 was 2322, checked in by cmv, 23 years ago |
- passage xxstream.h en xxstream
- compile avec gcc_3.2, gcc_2.96 et cxx
En 3.2 le seek from ::end semble marcher (voir Eval/COS/pbseekios.cc)
rz+cmv 11/2/2003
|
File size:
1.1 KB
|
Line | |
---|
1 | // 3-D Geometry
|
---|
2 | // B. Revenu, G. Le Meur 2000
|
---|
3 | // DAPNIA/SPP (Saclay) / CEA LAL - IN2P3/CNRS (Orsay)
|
---|
4 |
|
---|
5 | #ifndef UNITVECTOR_H_SEEN
|
---|
6 | #define UNITVECTOR_H_SEEN
|
---|
7 |
|
---|
8 | #include <iostream>
|
---|
9 | #include <stdio.h>
|
---|
10 | #include <string.h>
|
---|
11 | #include "vector3d.h"
|
---|
12 |
|
---|
13 | namespace SOPHYA {
|
---|
14 |
|
---|
15 | class UnitVector : public Vector3d
|
---|
16 | {
|
---|
17 |
|
---|
18 | public:
|
---|
19 |
|
---|
20 | UnitVector();
|
---|
21 | UnitVector(double x, double y, double z);
|
---|
22 | UnitVector(double theta, double phi=0);
|
---|
23 | UnitVector(const Vector3d&);
|
---|
24 |
|
---|
25 | /*virtual*/ Vector3d& operator=(const Vector3d&); //$CHECK$ EA 101299 operator = non virtual
|
---|
26 | virtual Vector3d& operator+=(const Vector3d&);
|
---|
27 | virtual Vector3d& operator-=(const Vector3d&);
|
---|
28 | virtual Vector3d operator+(const Vector3d&) const;
|
---|
29 | virtual Vector3d operator-(const Vector3d&) const;
|
---|
30 |
|
---|
31 | virtual Vector3d& operator+=(double d) { return Vector3d::operator+= (d); }
|
---|
32 | virtual Vector3d operator+(double d) const { return Vector3d::operator+ (d); }
|
---|
33 | virtual Vector3d operator-(double d) const { return Vector3d::operator- (d); }
|
---|
34 |
|
---|
35 | void Print(ostream& os) const;
|
---|
36 |
|
---|
37 | };
|
---|
38 |
|
---|
39 | } // namespace SOPHYA
|
---|
40 |
|
---|
41 | #endif
|
---|
42 |
|
---|
43 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.