projects
/
physics.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added suport for ballxpolygon collision ... VERY hacky
[physics.git]
/
src
/
mathw.h
diff --git
a/src/mathw.h
b/src/mathw.h
index
b45bfc0
..
312379f
100644
(file)
--- a/
src/mathw.h
+++ b/
src/mathw.h
@@
-32,7
+32,15
@@
int mod(int,int);
/// Vector2 Math
/// Vector2 Math
-//Vector2 vectorToLine(float, float, float, float) const;
+Vector2 vectorToLine
+(
+ const Vector2& vec,
+ float x1,
+ float y1,
+ float x2,
+ float y2
+);
+
//Vector2 lineIntersection(Vector2&, Vector2&, Vector2&, Vector2&) const;
//void Rotate(float rads);
//Vector2 lineIntersection(Vector2&, Vector2&, Vector2&, Vector2&) const;
//void Rotate(float rads);