#include <G4ErrorPlaneSurfaceTarget.hh>
|
(Note that these are not member functions.)
|
std::ostream & | operator<< (std::ostream &os, const Plane3D< double > &p) |
|
std::ostream & | operator<< (std::ostream &os, const Plane3D< float > &p) |
|
◆ G4ErrorPlaneSurfaceTarget() [1/3]
◆ G4ErrorPlaneSurfaceTarget() [2/3]
G4ErrorPlaneSurfaceTarget::G4ErrorPlaneSurfaceTarget |
( |
const G4Normal3D & |
n, |
|
|
const G4Point3D & |
p |
|
) |
| |
◆ G4ErrorPlaneSurfaceTarget() [3/3]
◆ ~G4ErrorPlaneSurfaceTarget()
G4ErrorPlaneSurfaceTarget::~G4ErrorPlaneSurfaceTarget |
( |
| ) |
|
|
default |
◆ a()
Returns the a-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 84 of file Plane3D.h.
◆ b()
Returns the b-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 87 of file Plane3D.h.
◆ c()
Returns the c-coefficient in the plane equation: a*x+b*y+c*z+d=0.
Definition at line 90 of file Plane3D.h.
◆ d()
Returns the free member of the plane equation: a*x+b*y+c*z+d=0.
Definition at line 93 of file Plane3D.h.
◆ distance()
Returns distance to the point.
Definition at line 109 of file Plane3D.h.
109 {
110 return a()*p.
x() +
b()*p.
y() +
c()*p.
z() +
d();
111 }
◆ Dump()
void G4ErrorPlaneSurfaceTarget::Dump |
( |
const G4String & |
msg | ) |
const |
|
virtual |
◆ GetDistanceFromPoint() [1/2]
Implements G4ErrorSurfaceTarget.
Definition at line 111 of file G4ErrorPlaneSurfaceTarget.cc.
113{
114 if( std::fabs( dir.mag() -1. ) > 1.E-6 )
115 {
116 std::ostringstream message;
117 message << "Direction is not a unit vector: " << dir << " !";
118 G4Exception(
"G4ErrorPlaneSurfaceTarget::GetDistanceFromPoint()",
120 }
122 / (
a_ * dir.x() +
b_ * dir.y() +
c_ * dir.z() );
123
124#ifdef G4VERBOSE
126 {
127 G4cout <<
" G4ErrorPlaneSurfaceTarget::GetDistanceFromPoint()" <<
G4endl
128 <<
" Point: " << pt <<
", Direction: " << dir <<
G4endl
129 <<
" Distance: " << dist <<
G4endl;
130 }
131#endif
132
133 return dist;
134}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
References HepGeom::Plane3D< G4double >::a_, HepGeom::Plane3D< G4double >::b_, HepGeom::Plane3D< G4double >::c_, HepGeom::Plane3D< G4double >::d_, G4cout, G4endl, G4Exception(), JustWarning, CLHEP::Hep3Vector::mag(), G4ErrorPropagatorData::verbose(), CLHEP::Hep3Vector::x(), CLHEP::Hep3Vector::y(), and CLHEP::Hep3Vector::z().
Referenced by Intersect().
◆ GetDistanceFromPoint() [2/2]
◆ GetTangentPlane()
◆ GetType()
◆ Intersect()
◆ normal()
Returns normal.
Definition at line 97 of file Plane3D.h.
97{
return Normal3D<T>(
a_,
b_,
c_); }
◆ normalize()
Normalization.
Definition at line 101 of file Plane3D.h.
101 {
103 if (ll > 0.) {
a_ /= ll;
b_ /= ll;
c_ /= ll,
d_ /= ll; }
104 return *this;
105 }
◆ operator!=()
Test for inequality.
Definition at line 135 of file Plane3D.h.
135 {
136 return a() != p.
a() ||
b() != p.
b() ||
c() != p.
c() ||
d() != p.
d();
137 }
◆ operator==()
Test for equality.
Definition at line 129 of file Plane3D.h.
129 {
130 return a() == p.
a() &&
b() == p.
b() &&
c() == p.
c() &&
d() == p.
d();
131 }
◆ point() [1/2]
Returns projection of the origin to the plane.
Definition at line 122 of file Plane3D.h.
122 {
123 T k = -
d()/(
a()*
a()+
b()*
b()+
c()*
c());
124 return Point3D<T>(
a()*k,
b()*k,
c()*k);
125 }
◆ point() [2/2]
Returns projection of the point to the plane.
Definition at line 115 of file Plane3D.h.
115 {
117 return Point3D<T>(p.
x()-
a()*k, p.
y()-
b()*k, p.
z()-
c()*k);
118 }
G4double distance(const Point3D< G4double > &p) const
◆ TargetReached()
◆ transform()
Transformation by Transform3D.
Definition at line 141 of file Plane3D.h.
141 {
145 return *this;
146 }
static constexpr double m
◆ operator<<() [1/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Plane3D< double > & |
p |
|
) |
| |
|
related |
Output to the stream.
Definition at line 159 of file Plane3D.cc.
28 {
29 return os
30 << '(' << p.a() << ',' << p.b() << ',' << p.c() << ',' << p.d() << ')';
31 }
◆ operator<<() [2/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
const Plane3D< float > & |
p |
|
) |
| |
|
related |
Output to the stream.
Definition at line 153 of file Plane3D.cc.
21 {
22 return os
23 << '(' << p.a() << ',' << p.b() << ',' << p.c() << ',' << p.d() << ')';
24 }
◆ a_
◆ b_
◆ c_
◆ d_
◆ theType
The documentation for this class was generated from the following files: