EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoVector.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file FairGeoVector.cxx
1 //*-- AUTHOR : Ilse Koenig
2 //*-- Modified : 16/06/99
3 
5 //
6 // FairGeoVector
7 //
8 // This class defines a vector with 3 Double_t components.
9 // Instantiations of this class are e.g geometry points and
10 // translation vectors in the geometry transformations.
11 //
12 // All functions and operators are defined inline.
13 //
14 // Constructors:
15 // FairGeoVector(Double_t dx=0,Double_t dy=0,Double_t dz=0)
16 // FairGeoVector(const FairGeoVector& v)
17 //
18 // Access to the components:
19 // void setVector(const Double_t* a);
20 // void setX(const Double_t a)
21 // void setY(const Double_t a)
22 // void setZ(const Double_t a)
23 // Double_t getX() const
24 // Double_t getY() const
25 // Double_t getZ() const
26 // Double_t operator() (const Int_t i) const;
27 //
28 // Check for the size of all components:
29 // Bool_t operator < (const Double_t a)
30 // Bool_t operator <= (const Double_t a)
31 // Bool_t operator > (const Double_t a)
32 // Bool_t operator >= (const Double_t a)
33 //
34 // Check for equality/inequality;
35 // Bool_t operator == (const FairGeoVector& v) const
36 // Bool_t operator != (const FairGeoVector& v) const
37 //
38 // Addition/Substraction of a vector;
39 // FairGeoVector& operator += (const Double_t a)
40 // FairGeoVector& operator -= (const Double_t a)
41 //
42 // Addition/Substraction of two vectors;
43 // FairGeoVector operator + (const FairGeoVector& v) const
44 // FairGeoVector operator - (const FairGeoVector& v) const
45 //
46 // Multiplication/Division of each components with/by a factor
47 // FairGeoVector& operator *= (const Double_t a)
48 // FairGeoVector& operator /= (const Double_t a)
49 //
50 //
51 // FairGeoVector operator - () const
52 // changes the sign of all components
53 //
54 // FairGeoVector& operator = (const FairGeoVector& v)
55 // assignment
56 //
57 // FairGeoVector& abs()
58 // builds absolute value of each components
59 //
60 // Double_t scalarProduct(const FairGeoVector& v) const;
61 // returns the scalar product
62 //
63 // FairGeoVector vectorProduct(const FairGeoVector& v) const;
64 // returns the vector product
65 //
66 // Double_t length() const {return sqrt(x*x+y*y+z*z);}
67 // returns the length
68 //
69 // void clear()
70 // sets all components to 0.0
71 //
72 // void print()
73 // prints the components
74 //
75 // void round(Int_t n)
76 // rounds all components to a precision with n digits
77 //
78 // friend ostream& operator << (ostream& put,const FairGeoVector& v);
79 // output to stream
80 //
81 // friend istream& operator >> (istream& get,FairGeoVector& v);
82 // input from stream
83 //
85 
86 #include "FairGeoVector.h"
87