From 05f2df34290af477b0fee49b75e5f56e1d6c83f9 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 8 Dec 2018 12:58:04 +0100 Subject: Initial commit with kinda crappy unnumbered examples --- namespaces.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 namespaces.hpp (limited to 'namespaces.hpp') diff --git a/namespaces.hpp b/namespaces.hpp new file mode 100644 index 0000000..dc8ef7c --- /dev/null +++ b/namespaces.hpp @@ -0,0 +1,21 @@ +#pragma once + +// C++ introduces namespaces to separate various things +// into logical blocks +namespace math { + struct vec3i { + int x; + int y; + int z; + }; + + struct vec3d { + double x; + double y; + double z; + }; + + + int dot(vec3i v, vec3i w); + double dot(vec3d v, vec3d w); +} -- cgit v1.2.1