src/layers/craters/profiles/fassett_thomson.cpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-License-Identifier: BSD-3-Clause | ||
| 2 | |||
| 3 | #include "terraingen/layers/craters/profiles/fassett_thomson.h" | ||
| 4 | |||
| 5 | #include <cstdint> | ||
| 6 | |||
| 7 | namespace terraingen { | ||
| 8 | |||
| 9 | 1345 | FassettThomsonProfile::FassettThomsonProfile(FassettThomsonRim rim) { | |
| 10 | 1345 | m_kernel.simple = CraterProfileKind::FassettThomson; | |
| 11 | 1345 | m_kernel.rim = static_cast<std::uint32_t>(rim); | |
| 12 | 1345 | } | |
| 13 | |||
| 14 | 12690874 | double FassettThomsonProfile::Height(double distance, double diameter, | |
| 15 | const CraterState& state) const { | ||
| 16 | 12690874 | return static_cast<double>(SimpleProfileHeight(m_kernel, static_cast<float>(distance), | |
| 17 | static_cast<float>(diameter), | ||
| 18 | 12690874 | KernelStateRecord(diameter, state))); | |
| 19 | } | ||
| 20 | |||
| 21 | } // namespace terraingen | ||
| 22 |