Geant4_10
|
#include <UVector2.hh>
Public Types | |
enum | { X = 0, Y = 1, NUM_COORDINATES = 2, SIZE = NUM_COORDINATES } |
enum | { ZMpvToleranceTicks = 100 } |
Public Member Functions | |
UVector2 (double x=0.0, double y=0.0) | |
UVector2 (const UVector2 &p) | |
UVector2 (const UVector3 &s) | |
~UVector2 () | |
double | operator() (int i) const |
double | operator[] (int i) const |
double & | operator() (int i) |
double & | operator[] (int i) |
void | setX (double x) |
void | setY (double y) |
void | set (double x, double y) |
double | phi () const |
double | mag2 () const |
double | mag () const |
double | r () const |
void | setPhi (double phi) |
void | setMag (double r) |
void | setR (double r) |
void | setPolar (double r, double phi) |
UVector2 & | operator= (const UVector2 &p) |
bool | operator== (const UVector2 &v) const |
bool | operator!= (const UVector2 &v) const |
int | compare (const UVector2 &v) const |
bool | operator> (const UVector2 &v) const |
bool | operator< (const UVector2 &v) const |
bool | operator>= (const UVector2 &v) const |
bool | operator<= (const UVector2 &v) const |
double | howNear (const UVector2 &p) const |
bool | isNear (const UVector2 &p, double epsilon=tolerance) const |
double | howParallel (const UVector2 &p) const |
bool | isParallel (const UVector2 &p, double epsilon=tolerance) const |
double | howOrthogonal (const UVector2 &p) const |
bool | isOrthogonal (const UVector2 &p, double epsilon=tolerance) const |
UVector2 & | operator+= (const UVector2 &p) |
UVector2 & | operator-= (const UVector2 &p) |
UVector2 | operator- () const |
UVector2 & | operator*= (double a) |
UVector2 | unit () const |
UVector2 | orthogonal () const |
double | dot (const UVector2 &p) const |
double | angle (const UVector2 &) const |
void | rotate (double) |
operator UVector3 () const | |
Static Public Member Functions | |
static double | getTolerance () |
static double | setTolerance (double tol) |
Public Attributes | |
double | x |
double | y |
Friends | |
std::ostream & | operator<< (std::ostream &, const UVector2 &) |
double | operator* (const UVector2 &a, const UVector2 &b) |
UVector2 | operator* (const UVector2 &p, double a) |
UVector2 | operator* (double a, const UVector2 &p) |
UVector2 | operator/ (const UVector2 &p, double a) |
UVector2 | operator+ (const UVector2 &a, const UVector2 &b) |
UVector2 | operator- (const UVector2 &a, const UVector2 &b) |
Definition at line 45 of file UVector2.hh.
anonymous enum |
Enumerator | |
---|---|
X | |
Y | |
NUM_COORDINATES | |
SIZE |
Definition at line 50 of file UVector2.hh.
anonymous enum |
Enumerator | |
---|---|
ZMpvToleranceTicks |
Definition at line 193 of file UVector2.hh.
|
inline |
|
inline |
Definition at line 251 of file UVector2.hh.
|
inlineexplicit |
Definition at line 223 of file UVector2.hh.
|
inline |
Definition at line 254 of file UVector2.hh.
|
inline |
|
inline |
|
inlinestatic |
Definition at line 401 of file UVector2.hh.
double UVector2::howNear | ( | const UVector2 & | p | ) | const |
double UVector2::howOrthogonal | ( | const UVector2 & | p | ) | const |
double UVector2::howParallel | ( | const UVector2 & | p | ) | const |
bool UVector2::isNear | ( | const UVector2 & | p, |
double | epsilon = tolerance |
||
) | const |
bool UVector2::isOrthogonal | ( | const UVector2 & | p, |
double | epsilon = tolerance |
||
) | const |
bool UVector2::isParallel | ( | const UVector2 & | p, |
double | epsilon = tolerance |
||
) | const |
|
inline |
Definition at line 310 of file UVector2.hh.
|
inline |
UVector2::operator UVector3 | ( | ) | const |
Definition at line 100 of file UVector2.cc.
|
inline |
Definition at line 269 of file UVector2.hh.
double UVector2::operator() | ( | int | i | ) | const |
double & UVector2::operator() | ( | int | i | ) |
Definition at line 48 of file UVector2.cc.
|
inline |
Definition at line 293 of file UVector2.hh.
Definition at line 274 of file UVector2.hh.
|
inline |
Definition at line 281 of file UVector2.hh.
bool UVector2::operator< | ( | const UVector2 & | v | ) | const |
bool UVector2::operator<= | ( | const UVector2 & | v | ) | const |
Definition at line 256 of file UVector2.hh.
|
inline |
Definition at line 264 of file UVector2.hh.
bool UVector2::operator> | ( | const UVector2 & | v | ) | const |
bool UVector2::operator>= | ( | const UVector2 & | v | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void UVector2::rotate | ( | double | angler | ) |
Definition at line 64 of file UVector2.cc.
|
inline |
Definition at line 236 of file UVector2.hh.
|
inline |
Definition at line 351 of file UVector2.hh.
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 23 of file UVector2.cc.
|
inline |
|
inline |
|
inline |
Definition at line 73 of file UVector2.cc.
|
friend |
Definition at line 82 of file UVector2.cc.
double UVector2::x |
Definition at line 195 of file UVector2.hh.
double UVector2::y |
Definition at line 196 of file UVector2.hh.