Skip to content
Snippets Groups Projects
Commit 1c5d84e2 authored by Elias Pipping's avatar Elias Pipping
Browse files

[Cleanup] Introduce constant zDistance

parent 118743c6
No related branches found
No related tags found
No related merge requests found
...@@ -38,12 +38,15 @@ namespace reference { ...@@ -38,12 +38,15 @@ namespace reference {
double const viscoHeight = 0.06; // Height of the viscous bottom layer double const viscoHeight = 0.06; // Height of the viscous bottom layer
double const weakLen = 0.20; // Length of the weak zone double const weakLen = 0.20; // Length of the weak zone
double const zDistance = 0.35;
LocalVector2D const A = createVector(0, 0); LocalVector2D const A = createVector(0, 0);
LocalVector2D const B = createVector(leftLeg, -rightLeg); LocalVector2D const B = createVector(leftLeg, -rightLeg);
LocalVector2D const C = createVector(leftLeg, 0); LocalVector2D const C = createVector(leftLeg, 0);
LocalVector2D const Z = createVector(0.35, 0); LocalVector2D const Z = createVector(zDistance, 0);
LocalVector2D const Y = createVector(0.35, -0.35 / leftLeg * rightLeg); LocalVector2D const Y =
createVector(zDistance, -zDistance / leftLeg * rightLeg);
LocalVector2D const X = createVector(Y[0] - weakLen * std::cos(leftAngle), LocalVector2D const X = createVector(Y[0] - weakLen * std::cos(leftAngle),
Y[1] + weakLen * std::sin(leftAngle)); Y[1] + weakLen * std::sin(leftAngle));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment