libkovan
1
The kovan standard library
types.hpp
Go to the documentation of this file.
1
#ifndef _TYPES_HPP_
2
#define _TYPES_HPP_
3
4
template
<
typename
T>
5
struct
Vec3
6
{
7
Vec3
();
8
Vec3
(
const
T &
x
,
const
T &
y
,
const
T &
z
);
9
10
T
x
;
11
T
y
;
12
T
z
;
13
};
14
15
template
<
typename
T>
16
Vec3<T>::Vec3
()
17
: x(0.0f),
18
y(0.0f),
19
z(0.0f)
20
{
21
}
22
23
24
template
<
typename
T>
25
Vec3<T>::Vec3
(
const
T &x,
const
T &y,
const
T &z)
26
: x(x),
27
y(y),
28
z(z)
29
{
30
}
31
32
typedef
Vec3<float>
Vec3f
;
33
typedef
Vec3<double>
Vec3lf
;
34
typedef
Vec3<int>
Vec3d
;
35
typedef
Vec3<unsigned>
Vec3u
;
36
37
#endif
Vec3::z
T z
Definition:
types.hpp:12
Vec3::x
T x
Definition:
types.hpp:10
Vec3::Vec3
Vec3()
Definition:
types.hpp:16
Vec3
Definition:
types.hpp:5
Vec3lf
Vec3< double > Vec3lf
Definition:
types.hpp:33
Vec3::y
T y
Definition:
types.hpp:11
Vec3f
Vec3< float > Vec3f
Definition:
types.hpp:32
Vec3u
Vec3< unsigned > Vec3u
Definition:
types.hpp:35
Vec3d
Vec3< int > Vec3d
Definition:
types.hpp:34
include
kovan
types.hpp
Generated on Tue Aug 30 2016 08:52:43 for libkovan by
1.8.9.1