SHiP Field Service
Framework-agnostic C++20 library exposing SHiP magnetic field maps.
Loading...
Searching...
No Matches
SHiP::FieldBox Struct Reference

Axis-aligned box, lengths in mm. More...

#include <FieldMap.h>

Public Member Functions

bool contains (double x, double y, double z) const
 True if (x, y, z) mm lies inside the box or on its boundary; false if any coordinate is NaN.
 

Public Attributes

std::array< double, 3 > min {}
 
std::array< double, 3 > max {}
 

Detailed Description

Axis-aligned box, lengths in mm.

Member Function Documentation

◆ contains()

bool SHiP::FieldBox::contains ( double  x,
double  y,
double  z 
) const

True if (x, y, z) mm lies inside the box or on its boundary; false if any coordinate is NaN.

Member Data Documentation

◆ max

std::array<double, 3> SHiP::FieldBox::max {}

◆ min

std::array<double, 3> SHiP::FieldBox::min {}

The documentation for this struct was generated from the following files: