Adding benchmark

This commit is contained in:
Dynamitos
2024-07-05 12:02:46 +02:00
parent 8418cdbd11
commit fd8dc5ed0f
47 changed files with 1071 additions and 1010 deletions
+8 -3
View File
@@ -26,15 +26,20 @@ void from_json(const nlohmann::json& j, Vector& vec) {
}
std::ostream& operator<<(std::ostream& stream, const Vector2& vector) {
stream << "(" << vector.x << ", " << vector.y << ")";
stream << "Vec2(" << vector.x << ", " << vector.y << ")";
return stream;
}
std::ostream& operator<<(std::ostream& stream, const Vector& vector) {
stream << "(" << vector.x << ", " << vector.y << ", " << vector.z << ")";
stream << "Vec3(" << vector.x << ", " << vector.y << ", " << vector.z << ")";
return stream;
}
std::ostream& operator<<(std::ostream& stream, const Vector4& vector) {
stream << "(" << vector.x << ", " << vector.y << ", " << vector.z << ", " << vector.w << ")";
stream << "Vec4(" << vector.x << ", " << vector.y << ", " << vector.z << ", " << vector.w << ")";
return stream;
}
std::ostream& operator<<(std::ostream& stream, const Quaternion& vector) {
stream << "Quat(" << vector.w << ", " << vector.x << ", " << vector.y << ", " << vector.z << ")";
return stream;
}