feat(python): expose vessel_cog/cog and update documentation

This commit is contained in:
Antoine Anceau committed 2026-02-13 09:13:14 +01:00
1 parent 853a12cbdb
commit c3e840e9fc
5 files changed
+134 -4

No files matched your search

+6 -1
View File
@@ -152,7 +152,12 @@ HydrostaticState
.. py:attribute:: cog
:type: tuple[float, float, float] or None
Center of Gravity (LCG, TCG, VCG) vector, if provided.
Center of Gravity (LCG, TCG, VCG) vector, if provided. Matches ``displacement``.
.. py:attribute:: vessel_cog
:type: tuple[float, float, float] or None
Vessel Center of Gravity (LCG, TCG, VCG) vector (Ship-only). Matches ``vessel_displacement``.
**Waterplane Properties**
+2
View File
@@ -142,6 +142,8 @@ StabilityCurve
- ``trim``: Trim angle in degrees
- ``gz``: GZ value (m) (alias value)
- ``value``: GZ or KN value (m)
- ``cog``: Total physical Center of Gravity (LCG, TCG, VCG)
- ``vessel_cog``: Vessel Center of Gravity (LCG, TCG, VCG)
- ``is_flooding``: True if any opening is submerged
- ``flooded_openings``: List of flooded opening names