载入中...
搜索中...
未找到
eve::physics::BuoyancyGeometry类 参考

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()

Result< ImmersionSample > eve::physics::BuoyancyGeometry::box3D ( ForceVector  center,
ForceVector  size,
double  surfaceY 
)
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()

Result< ImmersionSample > eve::physics::BuoyancyGeometry::circle2D ( ForceVector  center,
double  radius,
double  thickness,
double  surfaceY 
)
static

Integrate a circular slice below a horizontal surface, extruded by thickness.

在文件 BuoyancyGeometry.cpp 第 33 行定义.

引用了 area, center, h, inputs, eve::physics::force_detail::isPositive(), offset, q, radius , 以及 thickness.

◆ rectangle2D()

Result< ImmersionSample > eve::physics::BuoyancyGeometry::rectangle2D ( ForceVector  center,
double  width,
double  height,
double  thickness,
double  surfaceY 
)
static

Clip a world-aligned rectangle and extrude its submerged area by thickness.

在文件 BuoyancyGeometry.cpp 第 61 行定义.

引用了 box3D(), center, height, thickness , 以及 width.

◆ sphere3D()

Result< ImmersionSample > eve::physics::BuoyancyGeometry::sphere3D ( ForceVector  center,
double  radius,
double  surfaceY 
)
static

Integrate the submerged spherical cap and its volume centroid.

在文件 BuoyancyGeometry.cpp 第 24 行定义.

引用了 center, fraction, h, inputs, eve::physics::force_detail::isPositive(), offset , 以及 radius.


该类的文档由以下文件生成: