CORSIKA  @c8_version@
The framework to simulate particle cascades for astroparticle physics
corsika::Box Class Reference

Describes a sphere in space. More...

#include <Box.hpp>

Inheritance diagram for corsika::Box:

Public Member Functions

 Box (CoordinateSystemPtr cs, LengthType const x, LengthType const y, LengthType const z)
 
 Box (CoordinateSystemPtr cs, LengthType const side)
 
bool contains (Point const &p) const override
 returns true if the Point p is within the sphere
 
Point const & getCenter () const
 
CoordinateSystemPtr const getCoordinateSystem () const
 
LengthType const getX () const
 
LengthType const getY () const
 
LengthType const getZ () const
 
std::string asString () const
 
template<typename TDim >
void rotate (QuantityVector< TDim > const &axis, double const angle)
 

Protected Attributes

Point center_
 
CoordinateSystemPtr cs_
 
LengthType x_
 
LengthType y_
 
LengthType z_
 

Detailed Description

Describes a sphere in space.

The center point and the orintation of the Box is set by a CoordinateSystemPtr at construction.

Definition at line 24 of file Box.hpp.


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