summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-network.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-network.cpp b/test/test-network.cpp
index 70f2428..af2c76e 100644
--- a/test/test-network.cpp
+++ b/test/test-network.cpp
@@ -19,7 +19,9 @@
#include <vector>
struct TestLink : public LinkStraight {
+ TestLink(NodePtr a, NodePtr b) : TestLink {a, b, glm::distance(a->pos, b->pos)} { }
TestLink(NodePtr a, NodePtr b, float l) : Link {{std::move(a), 0}, {std::move(b), pi}, l} { }
+ using StraightLink = TestLink;
};
constexpr glm::vec3 p000 {0, 0, 0}, p100 {1, 0, 0}, p200 {2, 0, 0}, p300 {3, 0, 0};