flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 12:36:47 -05:00
commit 0807c0286a
107 changed files with 12310 additions and 0 deletions

44
tjp/core/math/HPoint.hpp Executable file
View File

@@ -0,0 +1,44 @@
//
// Math.hpp
// amoeba
//
// Created by Timothy Prepscius on 12/30/16.
// Copyright © 2016 Timothy Prepscius. All rights reserved.
//
#pragma once
#include "HPoint.h"
#include "Vector3.h"
namespace tjp {
namespace core {
namespace math {
template<typename Real>
struct HPoint
{
typedef Real value_type;
Real v[4];
HPoint();
HPoint(const Vector3<Real> &r);
HPoint(Real v0, Real v1, Real v2, Real v3);
Real &operator[](size_t size);
Real const &operator[](size_t size) const;
operator Vector3<Real>&();
operator const Vector3<Real>&() const;
};
typedef HPoint<Real> HPointr;
typedef HPoint<float> HPointf;
typedef HPoint<double> HPointd;
} // namespace
} // namespace
} // namespace