Core: Add constexpr constructors/operators to math structs

• Begin integrating `constexpr` on math tests; use `static_assert` where appropriate
This commit is contained in:
Thaddeus Crews 2024-11-01 11:15:21 -05:00
parent 9e6ee9c5c3
commit ea62170dac
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
56 changed files with 1109 additions and 1159 deletions

View file

@ -475,7 +475,7 @@ void Polygon3DEditor::_polygon_draw() {
va.resize(poly.size());
Vector3 *w = va.ptrw();
for (int i = 0; i < poly.size(); i++) {
Vector2 p, p2;
Vector2 p;
p = i == edited_point ? edited_point_pos : poly[i];
Vector3 point = Vector3(p.x, p.y, depth);