Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4RayTracerViewer.cc,v 1.11 2003/06/16 17:13:44 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// $Id: G4RayTracerViewer.cc,v 1.12 2004/12/07 23:41:01 perl Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-03 $
|
||||
|
||||
#include "G4RayTracerViewer.hh"
|
||||
|
||||
@@ -58,7 +58,7 @@ void G4RayTracerViewer::SetView() {
|
||||
targetPoint + cameraDistance * fVP.GetViewpointDirection().unit();
|
||||
const G4double nearDistance = fVP.GetNearDistance(cameraDistance,radius);
|
||||
const G4double frontHalfHeight = fVP.GetFrontHalfHeight(nearDistance,radius);
|
||||
const G4double frontHalfAngle = atan(frontHalfHeight / nearDistance);
|
||||
const G4double frontHalfAngle = std::atan(frontHalfHeight / nearDistance);
|
||||
|
||||
// Calculate and set ray tracer parameters.
|
||||
theTracer->
|
||||
|
||||
Reference in New Issue
Block a user