Geant4-11
Public Member Functions | Data Fields
G4TwistedTubs::LastVector Class Reference

Public Member Functions

 LastVector ()
 
 LastVector (const LastVector &r)
 
LastVectoroperator= (const LastVector &r)
 
 ~LastVector ()
 

Data Fields

G4ThreeVector p
 
G4VTwistSurface ** surface
 
G4ThreeVector vec
 

Detailed Description

Definition at line 251 of file G4TwistedTubs.hh.

Constructor & Destructor Documentation

◆ LastVector() [1/2]

G4TwistedTubs::LastVector::LastVector ( )
inline

Definition at line 254 of file G4TwistedTubs.hh.

255 {
258 surface = new G4VTwistSurface*[1];
259 }
void set(double x, double y, double z)
G4VTwistSurface ** surface
static const G4double kInfinity
Definition: geomdefs.hh:41

References kInfinity, p, CLHEP::Hep3Vector::set(), surface, and vec.

◆ ~LastVector()

G4TwistedTubs::LastVector::~LastVector ( )
inline

Definition at line 260 of file G4TwistedTubs.hh.

261 {
262 delete [] surface;
263 }

References surface.

◆ LastVector() [2/2]

G4TwistedTubs::LastVector::LastVector ( const LastVector r)
inline

Definition at line 264 of file G4TwistedTubs.hh.

264 : p(r.p), vec(r.vec)
265 {
266 surface = new G4VTwistSurface*[1];
267 surface[0] = r.surface[0];
268 }

References surface.

Member Function Documentation

◆ operator=()

LastVector & G4TwistedTubs::LastVector::operator= ( const LastVector r)
inline

Definition at line 269 of file G4TwistedTubs.hh.

270 {
271 if (&r == this) { return *this; }
272 p = r.p; vec = r.vec;
273 delete [] surface; surface = new G4VTwistSurface*[1];
274 surface[0] = r.surface[0];
275 return *this;
276 }

References p, surface, and vec.

Field Documentation

◆ p

G4ThreeVector G4TwistedTubs::LastVector::p

Definition at line 278 of file G4TwistedTubs.hh.

Referenced by LastVector(), operator=(), and G4TwistedTubs::SurfaceNormal().

◆ surface

G4VTwistSurface** G4TwistedTubs::LastVector::surface

◆ vec

G4ThreeVector G4TwistedTubs::LastVector::vec

Definition at line 279 of file G4TwistedTubs.hh.

Referenced by LastVector(), operator=(), and G4TwistedTubs::SurfaceNormal().


The documentation for this class was generated from the following file: