restructured project
This commit is contained in:
parent
62b90b7077
commit
5762d02b48
9 changed files with 26 additions and 20 deletions
|
@ -1,26 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
struct SDL_Rect;
|
||||
struct SDL_Renderer;
|
||||
|
||||
class VectorField
|
||||
{
|
||||
public:
|
||||
VectorField();
|
||||
VectorField(int width, int height);
|
||||
VectorField(int width, int height, const std::vector<double>& hori, const std::vector<double>& vert);
|
||||
|
||||
void Draw(SDL_Renderer* renderer, const SDL_Rect& targetRect);
|
||||
void RecalculateMagnitude();
|
||||
|
||||
public:
|
||||
std::vector<double> horizontal;
|
||||
std::vector<double> vertical;
|
||||
|
||||
private:
|
||||
int width, height;
|
||||
|
||||
double biggestMagnitude = 0.0;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue