diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-21 03:30:18 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-21 03:30:18 +0000 |
commit | d8ee91b44e31cf1500926d37b7391e8c94bbf14a (patch) | |
tree | 7452ba1726a623e1e03a9adec07e60aa1298d23d /game/network/link.h | |
parent | Give UI builders an interface that can be programmatically called (diff) | |
download | ilt-d8ee91b44e31cf1500926d37b7391e8c94bbf14a.tar.bz2 ilt-d8ee91b44e31cf1500926d37b7391e8c94bbf14a.tar.xz ilt-d8ee91b44e31cf1500926d37b7391e8c94bbf14a.zip |
Fix calculating radius and length of curved links
Diffstat (limited to 'game/network/link.h')
-rw-r--r-- | game/network/link.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/network/link.h b/game/network/link.h index 725e023..4cca52c 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -16,7 +16,7 @@ template<typename> class Ray; // it has location class Node : public StdTypeDefs<Node> { public: - explicit Node(GlobalPosition3D p) noexcept : pos(p) {}; + explicit Node(GlobalPosition3D p) noexcept : pos(p) { }; virtual ~Node() noexcept = default; NO_COPY(Node); NO_MOVE(Node); @@ -38,7 +38,7 @@ public: Nexts nexts {}; }; - Link(End, End, float); + Link(End, End, RelativeDistance length); virtual ~Link() = default; NO_COPY(Link); NO_MOVE(Link); @@ -76,7 +76,7 @@ LinkStraight::~LinkStraight() = default; class LinkCurve : public virtual Link { public: inline ~LinkCurve() override = 0; - LinkCurve(GlobalPosition3D, RelativeDistance, Arc); + LinkCurve(GlobalPosition3D centreBase, RelativeDistance radius, Arc); NO_COPY(LinkCurve); NO_MOVE(LinkCurve); |