summaryrefslogtreecommitdiffstats
path: root/namespaces.hpp
blob: dc8ef7c4c9555171be07222b7f200e20d2898620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}