From 6aba7c7dd1d6bcc1ddb4a5acb61ec0850c420824 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 8 Oct 2022 15:51:19 +0100 Subject: Add addStright to Network which looks up StraightLink in the network type --- test/test-network.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 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}; -- cgit v1.2.3