NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
vec.hpp
1#pragma once
2
3namespace nw4r {
4namespace math {
5
7struct _VEC2 {
8 float x, y;
9};
10
11struct VEC2 : public _VEC2 {
12 VEC2() {}
13 VEC2(float fx, float fy) { x = fx; y = fy; }
14 VEC2(const VEC2 &v) { x = v.x; y = v.y; }
15};
16
17struct _VEC3 {
18 float x, y, z;
19};
20
22struct VEC3 : public _VEC3 {
23 VEC3() {}
24 VEC3(float fx, float fy, float fz) { x = fx; y = fy; z = fz; }
25};
26
27} // namespace math
28} // namespace nw4r
A three-dimensional floating point vector.
Definition vec.hpp:22
A two-dimensional floating point vector.
Definition vec.hpp:7