Good working protoype with config nodes and a experimental channel setting ui.

This commit is contained in:
Sebastian
2024-12-09 01:40:13 +01:00
parent 3b08037f92
commit ddf9e640b1
7 changed files with 123 additions and 14 deletions
+8
View File
@@ -61,6 +61,14 @@ namespace VISEQ::VMATH{
return Vec2D<T>{x,y} - (Vec2D<T>{x,y} - v)*0.5f;
}
Vec2D orbitAlongVector(Vec2D d, float r){
return Vec2D<T>{x,y} - ((Vec2D<T>{x,y} - d)).norm() * r;
}
Vec2D orbitAtAngle(float r, float angle){
return {x + sin(angle) * r, y + cos(angle) * r};
}
Vec2D& operator=(const Vec2D& vec){
if (this == &vec){
return *this;