3 #include <plugify/vector.hpp>
4 #include <plugify/string.hpp>
10 PLUGIFY_WARN_IGNORE(
"-Wgnu-anonymous-struct")
11 PLUGIFY_WARN_IGNORE("-Wnested-anon-types")
12 #elif defined(__GNUC__)
13 PLUGIFY_WARN_IGNORE(
"-Wpedantic")
14 #elif defined(_MSC_VER)
15 PLUGIFY_WARN_IGNORE(4201)
55 float m00, m01, m02, m03;
56 float m10, m11, m12, m13;
57 float m20, m21, m22, m23;
58 float m30, m31, m32, m33;
68 constexpr
bool operator==(const vec2& lhs, const vec2& rhs) {
69 return lhs.x == rhs.x && lhs.y == rhs.y;
72 constexpr
bool operator==(
const vec3& lhs,
const vec3& rhs) {
73 return lhs.x == rhs.x && lhs.y == rhs.y && lhs.z == rhs.z;
76 constexpr
bool operator==(
const vec4& lhs,
const vec4& rhs) {
77 return lhs.x == rhs.x && lhs.y == rhs.y && lhs.z == rhs.z && lhs.w == rhs.w;
80 constexpr
bool operator==(
const mat4x4& lhs,
const mat4x4& rhs) {
81 for (
int i = 0; i < 16; ++i) {
82 if (lhs.data[i] != rhs.data[i])