Skip to content

v4.6.1 - #42

Merged
gdifiore merged 9 commits into
mainfrom
development
Jun 1, 2026
Merged

gdifiore merged 9 commits into
mainfrom
development

Conversation

@gdifiore

@gdifiore gdifiore commented Jun 1, 2026 •

Copy link
Copy Markdown
Owner
  • append warning flags instead of clobbering CMAKE_CXX_FLAGS
  • note launch angle must be greater than zero
  • drop unused per-step spin magnitude from aerial loop
  • remove dead libshotscope CI workflow; bump cppcheck to c++20

gdifiore added 9 commits May 31, 2026 16:56
The aerial phase recomputed magnitude(spinVector) into a cached rw field
every integration step, but nothing read it except the getRw() accessor,
which had no callers anywhere in the library, tests, examples, or wasm
bindings. Remove the field, its calculate method, the two call sites, and
the dead getter so the integration loop skips a per-step sqrt.
The aerial phase ends as soon as the ball reaches ground height, so a
zero or negative launch angle from ground level (startZ = 0) exits the
flight immediately and produces no trajectory. Document the constraint on
the launchAngleDeg field and in the how-to guide, and note that putts and
ground-level rolls are out of scope.
set(CMAKE_CXX_FLAGS "-Wall -Wextra") discarded any flags the user passed
on the command line or in the cache. Prepend the existing value so the
warning flags add to user-supplied flags rather than replacing them,
matching the append idiom the coverage block already uses.
@gdifiore
gdifiore merged commit 11f7c56 into main Jun 1, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant