Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
UVector3.cc File Reference
#include "UVector3.hh"
#include "UUtils.hh"

Go to the source code of this file.

Functions

UVector3 operator+ (const UVector3 &a, const UVector3 &b)
 
UVector3 operator- (const UVector3 &a, const UVector3 &b)
 
UVector3 operator* (const UVector3 &p, double a)
 
UVector3 operator/ (const UVector3 &p, double a)
 
UVector3 operator* (double a, const UVector3 &p)
 
double operator* (const UVector3 &a, const UVector3 &b)
 

Function Documentation

UVector3 operator* ( const UVector3 p,
double  a 
)

Definition at line 144 of file UVector3.cc.

References UVector3::x, UVector3::y, and UVector3::z.

145 {
146  return UVector3(a * p.x, a * p.y, a * p.z);
147 }
double x
Definition: UVector3.hh:136
double z
Definition: UVector3.hh:138
double y
Definition: UVector3.hh:137
UVector3 operator* ( double  a,
const UVector3 p 
)

Definition at line 155 of file UVector3.cc.

References UVector3::x, UVector3::y, and UVector3::z.

156 {
157  return UVector3(a * p.x, a * p.y, a * p.z);
158 }
double x
Definition: UVector3.hh:136
double z
Definition: UVector3.hh:138
double y
Definition: UVector3.hh:137
double operator* ( const UVector3 a,
const UVector3 b 
)

Definition at line 160 of file UVector3.cc.

References UVector3::Dot().

161 {
162  return a.Dot(b);
163 }
double Dot(const UVector3 &) const
Definition: UVector3.hh:257
UVector3 operator+ ( const UVector3 a,
const UVector3 b 
)

Definition at line 134 of file UVector3.cc.

References UVector3::x, UVector3::y, and UVector3::z.

135 {
136  return UVector3(a.x + b.x, a.y + b.y, a.z + b.z);
137 }
double x
Definition: UVector3.hh:136
double z
Definition: UVector3.hh:138
double y
Definition: UVector3.hh:137
UVector3 operator- ( const UVector3 a,
const UVector3 b 
)

Definition at line 139 of file UVector3.cc.

References UVector3::x, UVector3::y, and UVector3::z.

140 {
141  return UVector3(a.x - b.x, a.y - b.y, a.z - b.z);
142 }
double x
Definition: UVector3.hh:136
double z
Definition: UVector3.hh:138
double y
Definition: UVector3.hh:137
UVector3 operator/ ( const UVector3 p,
double  a 
)

Definition at line 149 of file UVector3.cc.

References test::a, UVector3::x, UVector3::y, and UVector3::z.

150 {
151  a = 1. / a;
152  return UVector3(a * p.x, a * p.y, a * p.z);
153 }
double x
Definition: UVector3.hh:136
double z
Definition: UVector3.hh:138
double y
Definition: UVector3.hh:137