split edge: check, copy paste: check with a little bug

This commit is contained in:
Sebastian
2024-11-02 02:06:26 +01:00
parent 41cad27806
commit 70d0a186a4
5 changed files with 123 additions and 85 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ class Vec2D{
Vec2D norm() { return *this / length();};
Vec2D center(Vec2D v){
return Vec2D<T>{x,y} + (Vec2D<T>{x,y} - v)*0.5f;
return Vec2D<T>{x,y} - (Vec2D<T>{x,y} - v)*0.5f;
}
Vec2D& operator=(const Vec2D& vec){