mirror of
https://github.com/godotengine/godot.git
synced 2026-02-07 19:32:36 +00:00
Merge pull request #97553 from AThousandShips/semantic_equal
[Core] Add `is_same` to types that have float components
This commit is contained in:
@@ -780,6 +780,10 @@ void Projection::flip_y() {
|
||||
}
|
||||
}
|
||||
|
||||
bool Projection::is_same(const Projection &p_cam) const {
|
||||
return columns[0].is_same(p_cam.columns[0]) && columns[1].is_same(p_cam.columns[1]) && columns[2].is_same(p_cam.columns[2]) && columns[3].is_same(p_cam.columns[3]);
|
||||
}
|
||||
|
||||
Projection::Projection() {
|
||||
set_identity();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user