Skip to content

Added component-wise support for DegToRad, RadToDeg and Pow resolvers.#20

Merged
lextatic merged 6 commits into
mainfrom
feature/component-wise-resolvers
May 4, 2026
Merged

Added component-wise support for DegToRad, RadToDeg and Pow resolvers.#20
lextatic merged 6 commits into
mainfrom
feature/component-wise-resolvers

Conversation

@lextatic
Copy link
Copy Markdown
Contributor

@lextatic lextatic commented May 2, 2026

Changed

  • DegToRad, RadToDeg and Pow resolvers can now be used with Vector types.

@lextatic lextatic added the changed Changes in existing functionality label May 2, 2026
@lextatic lextatic requested a review from Copilot May 2, 2026 19:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds vector (component-wise) support to several Statescript math resolvers so they can operate on Vector2/Vector3/Vector4 in addition to scalar floating-point inputs.

Changes:

  • Extend DegToRadResolver and RadToDegResolver to return/compute component-wise for Vector2/Vector3/Vector4.
  • Extend PowResolver to support component-wise exponentiation for matching vector operand types.
  • Update resolver docs and add/adjust unit tests (including vector approximate-assert helpers).

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/statescript/resolvers/radtodeg-resolver.md Document vector output types and component-wise behavior + example.
docs/statescript/resolvers/degtorad-resolver.md Document vector output types and component-wise behavior + example.
docs/statescript/resolvers/pow-resolver.md Document vector support and adjust composition example.
docs/statescript/resolvers/README.md Update resolver index to reflect new output type support.
Forge/Statescript/Properties/RadToDegResolver.cs Implement vector-aware result typing and component-wise conversion.
Forge/Statescript/Properties/DegToRadResolver.cs Implement vector-aware result typing and component-wise conversion.
Forge/Statescript/Properties/PowResolver.cs Implement vector-aware result typing and component-wise power.
Forge.Tests/Statescript/Resolvers/RadToDegResolverTests.cs Add vector-specific tests and update invalid-type test.
Forge.Tests/Statescript/Resolvers/DegToRadResolverTests.cs Add vector-specific tests and update invalid-type test.
Forge.Tests/Statescript/Resolvers/PowResolverTests.cs Add vector tests and mismatched-vector validation test.
Forge.Tests/Helpers/TestUtils.cs Add BeApproximately overloads for Vector2/Vector3/Vector4.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Forge/Statescript/Properties/PowResolver.cs
Comment thread docs/statescript/resolvers/README.md Outdated
Comment thread docs/statescript/resolvers/pow-resolver.md Outdated
Comment thread docs/statescript/resolvers/README.md Outdated
Comment thread docs/statescript/resolvers/README.md Outdated
@lextatic lextatic merged commit 01161d3 into main May 4, 2026
1 check passed
@lextatic lextatic deleted the feature/component-wise-resolvers branch May 4, 2026 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changed Changes in existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants