Samarium Docs¶
Samarium is a 2d physics and rendering engine, written in modern C++20
Contents¶
- Math
- Core Math Functions
math
math::almost_equal()
math::min()
math::max()
math::power()
math::to_degrees()
math::to_radians()
math::abs()
math::sign()
math::sign()
math::sign()
math::mod()
math::wrap_max()
math::wrap_min_max()
math::round_to_nearest()
math::ceil_to_nearest()
math::floor_to_nearest()
math::sample()
math::integral()
math::sum()
math::mean()
math::distance()
math::distance_sq()
math::within_distance()
math::lerp_along()
math::clamped_lerp_along()
math::project()
math::project_clamped()
math::distance()
math::clamped_distance()
math::lies_in_segment()
math::intersection()
math::clamped_intersection()
math::intersection()
math::area()
math::area()
math::abs_area()
math::abs_area()
math::regular_polygon_points()
math::regular_polygon_points()
math::regular_polygon_points()
math::regular_polygon_points()
math::two_pi_i
math::epsilon
math::pi
math::two_thirds_pi
math::two_pi
math::e
math::sqrt2
- Vector2
- Interp
interp
interp::smooth_step()
interp::smoother_step()
interp::ease()
interp::ease2()
interp::ease_in_sine()
interp::ease_out_sine()
interp::ease_sine()
interp::ease_in_quad()
interp::ease_out_quad()
interp::ease_quad()
interp::ease_in_cubic()
interp::ease_out_cubic()
interp::ease_cubic()
interp::ease_in_quart()
interp::ease_out_quart()
interp::ease_quart()
interp::ease_in_quint()
interp::ease_out_quint()
interp::ease_quint()
interp::ease_in_expo()
interp::ease_out_expo()
interp::ease_expo()
interp::ease_in_circ()
interp::ease_out_circ()
interp::ease_circ()
interp::ease_in_back()
interp::ease_out_back()
interp::ease_back()
interp::ease_in_elastic()
interp::ease_out_elastic()
interp::ease_elastic()
interp::in_range()
interp::clamp()
interp::lerp()
interp::clamped_lerp()
interp::lerp_rgb()
interp::lerp_rotate()
interp::clamped_lerp_rotate()
interp::lerp_inverse()
interp::map_range()
interp::map_range_clamp()
interp::make_mapper()
interp::make_clamped_mapper()
interp::lerp_points()
- Bounding Box
sm
sm::BoundingBox
sm::BoundingBox::VecType
sm::BoundingBox::as()
sm::BoundingBox::validate()
sm::BoundingBox::validated()
sm::BoundingBox::contains()
sm::BoundingBox::diagonal()
sm::BoundingBox::clamp()
sm::BoundingBox::clamped_to()
sm::BoundingBox::width()
sm::BoundingBox::height()
sm::BoundingBox::x_range()
sm::BoundingBox::y_range()
sm::BoundingBox::operator==()
sm::BoundingBox::centre()
sm::BoundingBox::set_centre()
sm::BoundingBox::set_width()
sm::BoundingBox::set_height()
sm::BoundingBox::min
sm::BoundingBox::max
sm::BoundingBox::fit()
sm::BoundingBox::square()
sm::BoundingBox::from_centre_width_height()
- Sample
- SecondOrderDynamics
sm
sm::SecondOrderDynamics
sm::SecondOrderDynamics::SecondOrderDynamics()
sm::SecondOrderDynamics::update_parameters()
sm::SecondOrderDynamics::update()
sm::SecondOrderDynamics::update()
sm::SecondOrderDynamics::value
sm::SecondOrderDynamics::previous_input
sm::SecondOrderDynamics::vel
sm::SecondOrderDynamics::k1
sm::SecondOrderDynamics::k2
sm::SecondOrderDynamics::k3
- Core Math Functions
- gl
- Physics
- util
- run
- Grid
sm
sm::Image
sm::ScalarField
sm::VectorField
sm::convert_1d_to_2d()
sm::convert_2d_to_1d()
sm::iota_view_2d()
sm::dims4K
sm::dimsFHD
sm::dims720
sm::dims480
sm::dimsP2
sm::Grid
sm::Grid::value_type
sm::Grid::reference
sm::Grid::const_reference
sm::Grid::iterator
sm::Grid::const_iterator
sm::Grid::difference_type
sm::Grid::size_type
sm::Grid::Grid()
sm::Grid::Grid()
sm::Grid::Grid()
sm::Grid::operator[]()
sm::Grid::operator[]()
sm::Grid::operator[]()
sm::Grid::operator[]()
sm::Grid::at()
sm::Grid::at()
sm::Grid::at()
sm::Grid::at()
sm::Grid::at_or()
sm::Grid::at_or()
sm::Grid::begin()
sm::Grid::end()
sm::Grid::begin()
sm::Grid::end()
sm::Grid::cbegin()
sm::Grid::cend()
sm::Grid::front()
sm::Grid::front()
sm::Grid::back()
sm::Grid::back()
sm::Grid::size()
sm::Grid::empty()
sm::Grid::bounding_box()
sm::Grid::fill()
sm::Grid::formatted_data()
sm::Grid::span()
sm::Grid::data()
sm::Grid::data()
sm::Grid::upscale()
sm::Grid::enumerate_1d()
sm::Grid::enumerate_2d()
sm::Grid::byte_size()
sm::Grid::elements
sm::Grid::dims
sm::Grid::generate()
- file
- Include Graph