blob: ee09eae82d84589fac7d28694ad344ec4b117826 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef VECTOR3_HPP_
#define VECTOR3_HPP_
/**
* A structure for three-dimensional points.
*/
template<typename T>
struct vector3 {
T x; /**< The x coordinate */
T y; /**< The y coordinate */
T z; /**< The z coordinate */
vector3(T _x = 0, T _y = 0, T _z = 1)
: x(_x), y(_y), z(_z) {}
};
using vec3 = vector3<float>;
#endif // VECTOR3_HPP_
|