Files
geant4/source/geometry/solids/BREPS/src/G4CurveRayIntersection.cc
T
2016-06-09 10:41:53 +02:00

74 lines
2.5 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4CurveRayIntersection.cc,v 1.5 2003/03/28 13:11:58 gcosmo Exp $
// GEANT4 tag $Name: geant4-06-00 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
//
// G4CurveRayIntersection.cc
//
// ----------------------------------------------------------------------
#include "G4CurveRayIntersection.hh"
const G4int G4CurveRayIntersection::dFlag= 4;
G4CurveRayIntersection::G4CurveRayIntersection()
: r(0), d(kInfinity)
{
}
G4CurveRayIntersection::G4CurveRayIntersection(G4Curve& c0, const G4Ray& r0)
{
Init(c0, r0);
}
G4CurveRayIntersection::~G4CurveRayIntersection()
{
}
G4CurveRayIntersection::G4CurveRayIntersection(const G4CurveRayIntersection& cr)
: G4CurvePoint(), r(cr.r), d(cr.d)
{
c = cr.c;
p = cr.p;
u = cr.u;
notComputed = cr.notComputed;
}
G4CurveRayIntersection&
G4CurveRayIntersection::operator=(const G4CurveRayIntersection& cr)
{
if (&cr == this) return *this;
c = cr.c;
p = cr.p;
u = cr.u;
r = cr.r;
d = cr.d;
notComputed = cr.notComputed;
return *this;
}