Commit Graph

11 Commits

Author SHA1 Message Date
115b5a3471 Adds std::format support for math types
Adds `std::formatter` specializations for `Mat`, `Vector2`, `Vector3`, and `Vector4` types, enabling the use of `std::format` for these types.

This simplifies formatting and printing of these mathematical objects, improving code readability and consistency.

Also adds a hash function specialization for Vector3.
2025-08-26 12:22:33 +03:00
29795e9906 Includes missing formula headers
Includes the necessary formula headers in the camera trait files for different rendering engines.
This ensures that the required mathematical functions and definitions are available when using camera traits.
2025-08-12 19:08:30 +03:00
f277b1038c Adds comparison operators to Vector types
Adds less than, greater than, less than or equal, and greater than or equal operators to the Vector2, Vector3 and Vector4 classes.
The comparison is based on the lengths of the vectors.

Adds corresponding unit tests.
2025-08-12 08:54:33 +03:00
08d2ccc03a Refactors Vector operations for type safety
Ensures type safety in Vector2, Vector3, and Vector4 operations by using static_cast(0) instead of relying on implicit conversions.
This prevents potential issues with different numeric types.

Adds from_im_vec2 and from_im_vec4 methods for creating vectors from ImVec2/ImVec4 types.
2025-08-06 06:06:42 +03:00
17eb0cd0dc improved naming 2025-05-13 09:47:08 +03:00
f179aea4d7 removed even float type from vector classes 2025-05-13 09:22:23 +03:00
9a38d47b0d added noexcept for vector types 2025-05-04 19:13:26 +03:00
dd738f365d fix 2025-05-03 20:51:50 +03:00
df6d75e554 changed code style 2025-05-03 20:31:59 +03:00
5acd166d8f fixed include names 2025-03-21 04:40:59 +03:00
2688d977a9 change 2025-03-21 04:21:31 +03:00