cgfs:vmath
#ifndef VMATH_H
#define VMATH_H
namespace vmath {
template <typename T>
struct vec2 {
T x, y;
vec2() = default;
vec2(T x, T y) : x{x}, y{y} {}
};
template <typename T>
struct vec3 {
T x, y, z;
vec3() = default;
vec3(T x, T y, T z) : x{x}, y{y}, z{z} {}
};
} // namespace vmath
#endif
cgfs/vmath.txt · 最終更新: 2024/07/12 03:19 by freemikan