summaryrefslogtreecommitdiff
path: root/game/network/link.cpp
blob: 65aefd66522a2a67f4078227716cbfcbcf69751b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "link.h"
#include <compare>
#include <tuple>

Link::Link(End a, End b) : ends {{std::move(a), std::move(b)}} { }

bool
operator<(const glm::vec3 & a, const glm::vec3 & b)
{
	// NOLINTNEXTLINE(hicpp-use-nullptr,modernize-use-nullptr)
	return std::tie(a.x, a.z, a.y) < std::tie(b.x, b.z, b.y);
}

bool
operator<(const Node & a, const Node & b)
{
	return a.pos < b.pos;
}