Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
Loading...
Searching...
No Matches
MagneticSource.hpp
Go to the documentation of this file.
1#ifndef PHYTH_MAGNETIC_SOURCE_HPP
2#define PHYTH_MAGNETIC_SOURCE_HPP
3
5
7
28 public:
29 virtual ~MagneticSource() = default;
30
46 };
47
56 template <typename T>
57 inline constexpr bool is_magnetic_source_v = std::is_base_of_v<MagneticSource, T>;
58
59}
60
61#endif // PHYTH_MAGNETIC_SOURCE_HPP
Abstract base class for all magnetic field sources.
virtual Vector3< Quantity< Tesla > > GetMagneticFieldAt(const Vector3< Quantity< Meter > > &point) const =0
Compute the magnetic field at a point in space.
constexpr bool is_magnetic_source_v
Type trait to check if a type is a MagneticSource.
constexpr bool is_unit_v
Definition Unit.hpp:79
Physical quantity with a value and a compile-time unit.
Definition Quantity.hpp:27
3D vector with Quantity components
Definition Vector3.hpp:28