Torch
Loading...
Searching...
No Matches
Vec3D.h
1
#pragma once
2
3
#include "../factories/BaseFactory.h"
4
5
class
Vec3f {
6
public
:
7
float
x;
8
float
y;
9
float
z;
10
11
Vec3f(
float
xv = 0,
float
yv = 0,
float
zv = 0);
12
int
width();
13
int
precision();
14
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec3f& vec);
15
};
16
17
class
Vec3s {
18
public
:
19
int16_t x;
20
int16_t y;
21
int16_t z;
22
23
Vec3s(int16_t xv = 0, int16_t yv = 0, int16_t zv = 0);
24
int
width();
25
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec3s& vec);
26
};
27
28
class
Vec3i {
29
public
:
30
int32_t x;
31
int32_t y;
32
int32_t z;
33
34
Vec3i(int32_t xv = 0, int32_t yv = 0, int32_t zv = 0);
35
int
width();
36
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec3i& vec);
37
};
38
39
class
Vec3iu {
40
public
:
41
uint32_t x;
42
uint32_t y;
43
uint32_t z;
44
45
Vec3iu(uint32_t xv = 0, uint32_t yv = 0, uint32_t zv = 0);
46
int
width();
47
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec3iu& vec);
48
};
49
50
class
Vec2f {
51
public
:
52
float
x;
53
float
z;
54
55
Vec2f(
float
xv = 0,
float
zv = 0);
56
int
precision();
57
int
width();
58
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec2f& vec);
59
};
60
61
class
Vec4f {
62
public
:
63
float
x;
64
float
y;
65
float
z;
66
float
w;
67
68
Vec4f(
float
xv = 0,
float
yv = 0,
float
zv = 0,
float
wv = 0);
69
int
precision();
70
int
width();
71
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec4f& vec);
72
};
73
74
class
Vec4s {
75
public
:
76
int16_t x;
77
int16_t y;
78
int16_t z;
79
int16_t w;
80
81
Vec4s(int16_t xv = 0, int16_t yv = 0, int16_t zv = 0, int16_t wv = 0);
82
int
width();
83
friend
std::ostream& operator<< (std::ostream& stream,
const
Vec4s& vec);
84
};
src
types
Vec3D.h
Generated by
1.14.0