1 #ifndef VTESTBED_CORE_HULL_HH     2 #define VTESTBED_CORE_HULL_HH     4 #include <vtestbed/base/constants.hh>     5 #include <vtestbed/geometry/polyhedron.hh>    18             using typename base_type::scalar_type;
    19             using typename base_type::vertex_type;
    23             using typename base_type::size_type;
    24             using typename base_type::index_type;
    31             scalar_type _mass = 0;
    35             using base_type::base_type;
    36             using base_type::operator=;
    41             inline scalar_type mass()
 const { 
return this->_mass; }
    43             inline void mass(scalar_type rhs) {
    49             displacement(scalar_type rhs) {
    54             displacement()
 const {
    59             draught(scalar_type rhs) {
    61                 auto level = this->bounds(2).min() + rhs;
    62                 this->displacement(this->signed_volume_below(2, level));
    71 #endif // vim:filetype=cpp 
static constexpr const T water_density()
Sea water density.
 
Three-dimensional polyhedron.