lot of metal changes, but no idea how this stuff works
This commit is contained in:
@@ -38,6 +38,20 @@ std::ostream& operator<<(std::ostream& stream, const Vector4& vector) {
|
||||
return stream;
|
||||
}
|
||||
|
||||
|
||||
std::ostream& operator<<(std::ostream& stream, const UVector2& vector) {
|
||||
stream << "UVec2(" << vector.x << ", " << vector.y << ")";
|
||||
return stream;
|
||||
}
|
||||
std::ostream& operator<<(std::ostream& stream, const UVector& vector) {
|
||||
stream << "UVec3(" << vector.x << ", " << vector.y << ", " << vector.z << ")";
|
||||
return stream;
|
||||
}
|
||||
std::ostream& operator<<(std::ostream& stream, const UVector4& vector) {
|
||||
stream << "UVec4(" << 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;
|
||||
@@ -53,4 +67,4 @@ Vector Seele::parseVector(const char* str) {
|
||||
float y = std::stof(base_match[2].str());
|
||||
float z = std::stof(base_match[3].str());
|
||||
return Vector(x, y, z);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,4 +45,9 @@ void from_json(nlohmann::json& j, Vector& vec);
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::Vector2& vector);
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::Vector& vector);
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::Vector4& vector);
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::Quaternion& vector);
|
||||
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::UVector2& vector);
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::UVector& vector);
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::UVector4& vector);
|
||||
|
||||
std::ostream& operator<<(std::ostream& stream, const Seele::Quaternion& vector);
|
||||
|
||||
Reference in New Issue
Block a user