37 lines
500 B
C++
Executable File
37 lines
500 B
C++
Executable File
//
|
|
// Math.hpp
|
|
// amoeba
|
|
//
|
|
// Created by Timothy Prepscius on 12/30/16.
|
|
// Copyright © 2016 Timothy Prepscius. All rights reserved.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include "Box3.h"
|
|
|
|
#include <array>
|
|
|
|
namespace tjp {
|
|
namespace core {
|
|
namespace math {
|
|
|
|
template<typename Real>
|
|
class Box3
|
|
{
|
|
public:
|
|
typedef Real value_type;
|
|
|
|
typedef Vector3<Real> Center;
|
|
Center center;
|
|
|
|
using Axis = Vector3<Real>;
|
|
std::array<Axis, 3> axis;
|
|
std::array<Real, 3> extent;
|
|
};
|
|
|
|
} // namespace
|
|
} // namespace
|
|
} // namespace
|
|
|