ray sphere test
This commit is contained in:
parent
4a254a3a66
commit
2daa51680a
3 changed files with 29 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue