Box2D
3.0.0
A Real-Time-Oriented 2-D Physics Engine
|
TimeOfImpact Output data. More...
#include <TimeOfImpact.hpp>
Classes | |
struct | Stats |
Public Types | |
enum | State : std::uint16_t { e_unknown, e_failed, e_overlapped, e_touching, e_separated } |
using | toi_iter_type = std::remove_const< decltype(DefaultMaxToiIters)>::type |
using | dist_iter_type = std::remove_const< decltype(DefaultMaxDistanceIters)>::type |
using | root_iter_type = std::remove_const< decltype(DefaultMaxToiRootIters)>::type |
using | toi_sum_type = Wider< toi_iter_type >::type |
using | dist_sum_type = Wider< dist_iter_type >::type |
using | root_sum_type = Wider< root_iter_type >::type |
Public Member Functions | |
TOIOutput ()=default | |
constexpr | TOIOutput (State state, RealNum time, Stats stats) |
State | get_state () const noexcept |
Gets the state at time factor. More... | |
RealNum | get_t () const noexcept |
Gets time factor at which state occurs. More... | |
toi_iter_type | get_toi_iters () const noexcept |
dist_sum_type | get_sum_dist_iters () const noexcept |
dist_iter_type | get_max_dist_iters () const noexcept |
root_sum_type | get_sum_root_iters () const noexcept |
root_iter_type | get_max_root_iters () const noexcept |
TimeOfImpact Output data.
using box2d::TOIOutput::dist_iter_type = std::remove_const<decltype(DefaultMaxDistanceIters)>::type |
using box2d::TOIOutput::dist_sum_type = Wider<dist_iter_type>::type |
using box2d::TOIOutput::root_iter_type = std::remove_const<decltype(DefaultMaxToiRootIters)>::type |
using box2d::TOIOutput::root_sum_type = Wider<root_iter_type>::type |
using box2d::TOIOutput::toi_iter_type = std::remove_const<decltype(DefaultMaxToiIters)>::type |
using box2d::TOIOutput::toi_sum_type = Wider<toi_iter_type>::type |
enum box2d::TOIOutput::State : std::uint16_t |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Gets the state at time factor.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Gets time factor at which state occurs.
|
inlinenoexcept |