blob: 80743d43cacb8397de9cac9b077ed5a484be0a6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#pragma once
namespace math {
// a class is a glorified struct
class vec3i {
public:
// members
int x;
int y;
int z;
// default constructor
vec3i();
// copy constructor
vec3i(const vec3i& other);
// custom constructor
vec3i(int x_, int y_, int z_);
// method
void zero();
int dot(const vec3i& other) const;
};
}
|