41 lines
602 B
C++
Executable File
41 lines
602 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 "Segment1.h"
|
|
|
|
#include "Vector3.hpp"
|
|
#include "Vector2.hpp"
|
|
#include <cstddef>
|
|
#include <array>
|
|
|
|
#include "Zero.h"
|
|
|
|
namespace tjp {
|
|
namespace core {
|
|
namespace math {
|
|
|
|
template<typename Real>
|
|
struct Segment1
|
|
{
|
|
typedef Real value_type;
|
|
|
|
Real begin, end;
|
|
|
|
static const Segment1 Zero;
|
|
} ;
|
|
|
|
template<typename Real>
|
|
const Segment1<Real> Segment1<Real>::Zero = { zero<Real>(), zero<Real>() };
|
|
|
|
} // namespace
|
|
} // namespace
|
|
} // namespace
|
|
|