Skip to content

math: Add slerpTo matrix function - #284

Merged
leoetlino merged 1 commit into
open-ead:masterfrom
psyGamer:matrix-slerp
Nov 3, 2026
Merged

leoetlino merged 1 commit into
open-ead:masterfrom
psyGamer:matrix-slerp

Conversation

@psyGamer

@psyGamer psyGamer commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Adds the ::slerpTo function to matrices which is used by SMO.
I've only validated the implementation of Matrix33f and Matrix34f, since those are the only two templates SMO is using, but I doubt Matrix44f would do it differently.


This change is Reviewable

@leoetlino leoetlino left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@leoetlino reviewed 3 files and all commit messages, and made 3 comments.
Reviewable status: 3 of 4 files reviewed, 3 unresolved discussions (waiting on psyGamer).


include/math/seadMatrixCalcCommon.hpp line 443 at r1 (raw file):

    Quat qT;
    QuatCalcCommon<T>::slerpTo(qT, q1, q2, t);

Suggestion:

    qT.slerpTo(q1, q2, t);

include/math/seadMatrixCalcCommon.hpp line 1249 at r1 (raw file):

    Quat qT;
    QuatCalcCommon<T>::slerpTo(qT, q1, q2, t);

Suggestion:

    qT.slerpTo(q1, q2, t);

include/math/seadMatrixCalcCommon.hpp line 2513 at r1 (raw file):

    Quat qT;
    QuatCalcCommon<T>::slerpTo(qT, q1, q2, t);

Suggestion:

    qT.slerpTo(q1, q2, t);

@leoetlino leoetlino left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@leoetlino reviewed 1 file.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on psyGamer).

@psyGamer psyGamer left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@psyGamer made 1 comment.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on leoetlino).


include/math/seadMatrixCalcCommon.hpp line 443 at r1 (raw file):

    Quat qT;
    QuatCalcCommon<T>::slerpTo(qT, q1, q2, t);

Quat is a BaseQuat<T>, meaning it doesnt have any methods defiend.

@leoetlino leoetlino left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@leoetlino made 1 comment and resolved 3 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on psyGamer).


include/math/seadMatrixCalcCommon.hpp line 443 at r1 (raw file):

Previously, psyGamer wrote…

Quat is a BaseQuat<T>, meaning it doesnt have any methods defiend.

ah my bad, lgtm then

@leoetlino
leoetlino merged commit fd82576 into open-ead:master Nov 3, 2026
2 of 4 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.

2 participants