35 lines
526 B
C++
Executable File
35 lines
526 B
C++
Executable File
//
|
|
// Math.hpp
|
|
// amoeba
|
|
//
|
|
// Created by Timothy Prepscius on 12/30/16.
|
|
// Copyright © 2016 Timothy Prepscius. All rights reserved.
|
|
//
|
|
|
|
#include "Vector2.hpp"
|
|
#include <tjp/core/containers/Vector.h>
|
|
|
|
#pragma once
|
|
|
|
namespace tjp {
|
|
namespace core {
|
|
namespace math {
|
|
|
|
struct SimpleLineCompute
|
|
{
|
|
core::Vector<math::Vector2f> p;
|
|
core::Vector<float> s;
|
|
bool cap;
|
|
|
|
SimpleLineCompute(
|
|
std::initializer_list<math::Vector2f> l,
|
|
bool cap
|
|
);
|
|
float operator ()(float x);
|
|
} ;
|
|
|
|
} // namespace
|
|
} // namespace
|
|
} // namespace
|
|
|