qtty-cpp 0.4.5
Header-only C++ wrapper for qtty
Loading...
Searching...
No Matches
spectral_photon_radiance.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2// Copyright (C) 2026 Vallés Puig, Ramon
3
4#pragma once
5
6#include "../ffi_core.hpp"
7
8namespace qtty {
9
14
16 static constexpr UnitId unit_id() {
17 return UNIT_ID_PHOTON_PER_SQUARE_METER_SECOND_STERADIAN_METER;
18 }
19 static constexpr std::string_view symbol() { return "ph·m⁻²·s⁻¹·sr⁻¹·m⁻¹"; }
20 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_PHOTON_RADIANCE; }
21};
23 static constexpr UnitId unit_id() {
24 return UNIT_ID_PHOTON_PER_SQUARE_CENTIMETER_SECOND_STERADIAN_ANGSTROM;
25 }
26 static constexpr std::string_view symbol() { return "ph·cm⁻²·s⁻¹·sr⁻¹·Å⁻¹"; }
27 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_PHOTON_RADIANCE; }
28};
30 static constexpr UnitId unit_id() {
31 return UNIT_ID_PHOTON_PER_SQUARE_CENTIMETER_SECOND_STERADIAN_NANOMETER;
32 }
33 static constexpr std::string_view symbol() { return "ph·cm⁻²·s⁻¹·sr⁻¹·nm⁻¹"; }
34 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_PHOTON_RADIANCE; }
35};
37 static constexpr UnitId unit_id() {
38 return UNIT_ID_PHOTON_PER_SQUARE_CENTIMETER_NANOSECOND_STERADIAN_NANOMETER;
39 }
40 static constexpr std::string_view symbol() { return "ph·cm⁻²·ns⁻¹·sr⁻¹·nm⁻¹"; }
41 static constexpr DimensionId dimension() { return DIMENSION_ID_SPECTRAL_PHOTON_RADIANCE; }
42};
43
52
53} // namespace qtty
Core quantity template and error translation utilities.
Quantity< PhotonPerSquareMeterSecondSteradianMeterTag > PhotonPerSquareMeterSecondSteradianMeter
Quantity< PhotonPerSquareCentimeterSecondSteradianNanometerTag > PhotonPerSquareCentimeterSecondSteradianNanometer
Quantity< PhotonPerSquareCentimeterNanosecondSteradianNanometerTag > PhotonPerSquareCentimeterNanosecondSteradianNanometer
Quantity< PhotonPerSquareCentimeterSecondSteradianAngstromTag > PhotonPerSquareCentimeterSecondSteradianAngstrom