ray sphere test

This commit is contained in:
Jorijn van der Graaf 2026-02-11 04:28:54 +01:00
commit 2daa51680a
3 changed files with 29 additions and 7 deletions

View file

@ -347,4 +347,10 @@ struct std::formatter<Crafter::Vector<T, 4, Aligment>> : std::formatter<std::str
obj.x, obj.y, obj.z, obj.w
), ctx);
}
};
};
template <typename T, std::uint32_t Len, std::uint32_t Aligment, typename BT>
constexpr Crafter::Vector<T, Len, Aligment> operator*(BT b, const Crafter::Vector<T, Len, Aligment>& v) {
return v * b;
}