vix raytracer representation

This commit is contained in:
AndreaRigoni
2026-03-07 09:07:07 +00:00
parent e8f8e96521
commit 38dd416ced
3 changed files with 11 additions and 3 deletions

View File

@@ -63,9 +63,16 @@ public:
inline size_t Count() const { return this->m_Count; }
inline size_t size() const { return this->m_Count; }
inline const Scalarf &TotalLength() const { return this->m_TotalLength; }
inline void SetCount(size_t c) { this->m_Count = c; }
inline void SetCount(size_t c) {
this->m_Count = c;
if (this->m_Data.size() != c) {
this->m_Data.resize(c);
}
}
inline void SetTotalLength(Scalarf tl) { this->m_TotalLength = tl; }