Exact primitive immersion in the half-space y <= surfaceY, with +Y upward. @ownership All inputs/results are values; no body/world references or callbacks are retained. @thread Reentrant on any thread with immutable inputs. No allocation on success. 更多...
#include <BuoyancyGeometry.h>
静态 Public 成员函数 | |
| static Result< ImmersionSample > | circle2D (ForceVector center, double radius, double thickness, double surfaceY) |
| Integrate a circular slice below a horizontal surface, extruded by thickness. | |
| static Result< ImmersionSample > | rectangle2D (ForceVector center, double width, double height, double thickness, double surfaceY) |
| Clip a world-aligned rectangle and extrude its submerged area by thickness. | |
| static Result< ImmersionSample > | sphere3D (ForceVector center, double radius, double surfaceY) |
| Integrate the submerged spherical cap and its volume centroid. | |
| static Result< ImmersionSample > | box3D (ForceVector center, ForceVector size, double surfaceY) |
| Clip a world-aligned box; size contains full X/Y/Z dimensions. | |
详细描述
Exact primitive immersion in the half-space y <= surfaceY, with +Y upward. @ownership All inputs/results are values; no body/world references or callbacks are retained. @thread Reentrant on any thread with immutable inputs. No allocation on success.
Rectangle/box are world-axis aligned. Circle/sphere are rotation invariant. Coordinates use SI meters. 2D centers must have z=0 and require explicit positive thickness.
- 返回
- InvalidArgument for non-finite values, nonpositive sizes, or unrepresentable volume/centroid.
在文件 BuoyancyGeometry.h 第 20 行定义.
成员函数说明
◆ box3D()
|
static |
Clip a world-aligned box; size contains full X/Y/Z dimensions.
在文件 BuoyancyGeometry.cpp 第 54 行定义.
引用了 center, fraction, inputs, eve::physics::force_detail::isPositive() , 以及 size.
被这些函数引用 rectangle2D().
◆ circle2D()
|
static |
◆ rectangle2D()
|
static |
◆ sphere3D()
|
static |
Integrate the submerged spherical cap and its volume centroid.
在文件 BuoyancyGeometry.cpp 第 24 行定义.
引用了 center, fraction, h, inputs, eve::physics::force_detail::isPositive(), offset , 以及 radius.
该类的文档由以下文件生成:
- src/modules/physics/forces/BuoyancyGeometry.h
- src/modules/physics/forces/BuoyancyGeometry.cpp