Refactors triangle calculations for generic vectors

Updates the `Triangle` class to use a generic `Vector` type instead of `Vector3`, enhancing flexibility and reusability.

Changes include updating relevant function return types to use `Vector::ContainedType` and adapting length and distance calculations accordingly.

This refactoring supports the ongoing work on the EPA algorithm (feature/epa_algorithm) by providing a more adaptable foundation for geometric calculations.
This commit is contained in:
2025-11-13 15:29:10 +03:00
parent ce1142dac9
commit d8d585e3eb
4 changed files with 13 additions and 10 deletions
+1
View File
@@ -13,6 +13,7 @@ namespace omath
class Vector4 : public Vector3<Type>
{
public:
using ContainedType = Type;
Type w;
constexpr Vector4(const Type& x, const Type& y, const Type& z, const Type& w): Vector3<Type>(x, y, z), w(w)