geom/aabb: add a cast
call
This commit is contained in:
parent
750b3b6519
commit
3f6964f257
@ -34,6 +34,21 @@ namespace cruft::geom {
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
/// Returns a copy of the AABB with all elements implicitly cast to the
|
||||
/// type `DestinationT`.
|
||||
template <typename DestinationT>
|
||||
constexpr aabb<S, DestinationT>
|
||||
cast (void) const
|
||||
{
|
||||
return {
|
||||
lo.template cast<DestinationT> (),
|
||||
hi.template cast<DestinationT> ()
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
extent<S,T>
|
||||
magnitude (void) const
|
||||
|
Loading…
Reference in New Issue
Block a user