Good working protoype with config nodes and a experimental channel setting ui.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user