class
Vector3D
(Return to index)
A 3-dimension vector.
The copy constructor, destructor, and assignment operator generated
by the compiler perform the correct operation. For speed reasons they
are not implemented.
Type: |
Instantiable |
Include file: |
./BeamlineGeometry/Vector3D.hh |
Synopsis (including inherited members):
- Public members:
- Protected Members:
Documentation:
- Public members:
-
Vector3D
()
;
- Default constructor.
Construct null vector.
-
Vector3D
(double,double,double)
;
- Constructor.
Use components (x,y,z).
-
void clear
()
;
- Set to zero.
-
void getComponents
(double&,double&,double&)const
;
- Get components.
Return the components (x,y,z).
-
double getX
()const
;
- Get component.
Return the component x.
-
double getY
()const
;
- Get component.
Return the component y.
-
double getZ
()const
;
- Get component.
Return the component z.
-
bool isZero
()const
;
- Test for zero.
-
double& operator()
(int)
;
- Get component.
Return a reference to component i.
-
double operator()
(int)const
;
- Get component.
Return the value of component i.
-
Vector3D& operator*=
(double)
;
- Scale and assign.
-
Vector3D& operator+=
(const Vector3D&)
;
- Add and assign.
-
Vector3D operator-
()const
;
- Negative vector.
-
Vector3D& operator-=
(const Vector3D&)
;
- Subtract and assign.
-
void setX
(double)
;
- Set component.
Assign the component x.
-
void setY
(double)
;
- Set component.
Assign the component y.
-
void setZ
(double)
;
- Set component.
Assign the component z.
- Protected members:
Documentation generated by fci on Mon Feb 7 11:41:56 2000