Garfield++ v2r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
Definition of straight line, as combination of vector and point. More...
#include <straight.h>
Public Member Functions | |
point | Gpiv (void) const |
vec | Gdir (void) const |
straight () | |
straight (const point &fpiv, const vec &fdir) | |
straight & | operator= (const straight &fsl) |
straight (const point &fp1, const point &fp2) | |
straight (const plane pl1, const plane pl2) | |
straight (const point *pt, int qpt, int anum) | |
straight (const straight sl[4], point pt[2], vfloat prec) | |
int | check_point_in (const point &fp, vfloat prec) const |
point | cross (const straight &sl, vfloat prec) const |
vfloat | vecdistance (const straight &sl, int &type_of_cross, point pt[2]) const |
vfloat | distance (const straight &sl, int &type_of_cross, point pt[2]) const |
vfloat | distance (const point &fpt) const |
vfloat | distance (const point &fpt, point &fcpt) const |
point | vecdistance (const vec normal, const straight &slt) |
straight (straight *sl, int qsl, const straight &sl_start, int anum, vfloat precision, vfloat *dist, point(*pt)[2], vfloat &mean2dist) | |
Public Member Functions inherited from Heed::absref | |
virtual | ~absref () |
Destructor. | |
virtual void | down (const abssyscoor *fasc) |
Convert numbering representation of object to basical system of fasc. | |
virtual void | up (const abssyscoor *fasc) |
Convert numbering representation of objects to new system. | |
virtual void | turn (const vec &dir, vfloat angle) |
Turn around axis doing via center of coordinate system along dir. | |
virtual void | shift (const vec &dir) |
Protected Member Functions | |
virtual void | get_components (ActivePtr< absref_transmit > &aref_tran) |
Protected Attributes | |
point | piv |
Origin point, pivot. | |
vec | dir |
Direction, unit vector. | |
Static Protected Attributes | |
static absrefabsref::*[2] | aref |
Friends | |
int | operator== (const straight &sl1, const straight &sl2) |
int | operator!= (const straight &sl1, const straight &sl2) |
bool | apeq (const straight &sl1, const straight &sl2, vfloat prec) |
std::ostream & | operator<< (std::ostream &file, const straight &s) |
Definition of straight line, as combination of vector and point.
Definition at line 24 of file straight.h.
|
inline |
Definition at line 41 of file straight.h.
Definition at line 48 of file straight.h.
Definition at line 27 of file straight.cpp.
Heed::straight::straight | ( | const point * | pt, |
int | qpt, | ||
int | anum | ||
) |
Definition at line 217 of file straight.cpp.
Definition at line 263 of file straight.cpp.
Heed::straight::straight | ( | straight * | sl, |
int | qsl, | ||
const straight & | sl_start, | ||
int | anum, | ||
vfloat | precision, | ||
vfloat * | dist, | ||
point(*) | pt[2], | ||
vfloat & | mean2dist | ||
) |
Definition at line 142 of file straight.cpp.
Definition at line 48 of file straight.cpp.
Referenced by Heed::plane::plane(), and vecdistance().
Definition at line 54 of file straight.cpp.
Referenced by Heed::polyline::cross(), Heed::plane::plane(), and Heed::polygon::polygon().
Definition at line 180 of file straight.cpp.
Definition at line 187 of file straight.cpp.
Definition at line 137 of file straight.cpp.
Referenced by check_point_in(), Heed::circumf::cross(), Heed::cross4pllines(), Heed::polyline::dist_two_inter(), Heed::polyline::distance(), Heed::spquadr::perpos(), and vecdistance().
|
inline |
Definition at line 33 of file straight.h.
Referenced by Heed::circumf::cross(), Heed::plane::cross(), Heed::plane::plane(), Heed::polyline_pl::polyline_pl(), and vecdistance().
|
protectedvirtual |
|
inline |
Definition at line 32 of file straight.h.
Referenced by Heed::plane::cross(), Heed::plane::plane(), and Heed::polyline_pl::polyline_pl().
Definition at line 43 of file straight.h.
Definition at line 73 of file straight.cpp.
Referenced by cross(), distance(), and straight().
Definition at line 199 of file straight.cpp.
Definition at line 40 of file straight.cpp.
Definition at line 70 of file straight.h.
|
friend |
Definition at line 303 of file straight.cpp.
Definition at line 31 of file straight.cpp.
|
staticprotected |
Definition at line 37 of file straight.h.
Referenced by get_components().
|
protected |
Direction, unit vector.
Definition at line 29 of file straight.h.
Referenced by distance(), Gdir(), operator=(), straight(), and vecdistance().
|
protected |
Origin point, pivot.
Definition at line 27 of file straight.h.
Referenced by distance(), Gpiv(), operator=(), straight(), and vecdistance().