mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2025-06-08 02:23:10 -04:00
created vector instead of vertex
This commit is contained in:
parent
f5bf1f1b2a
commit
346dfcfcc9
8
src/Vector.cpp
Normal file
8
src/Vector.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include "Vector.h"
|
||||
|
||||
Vector::Vector(float x, float y) {
|
||||
this->x=x;
|
||||
this->y=y;
|
||||
}
|
||||
|
||||
Vector::Vector() {}
|
6
src/Vector.h
Normal file
6
src/Vector.h
Normal file
@ -0,0 +1,6 @@
|
||||
class Vector {
|
||||
public:
|
||||
float x,y;
|
||||
Vector();
|
||||
Vector(float x, float y);
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user