Skip to content

Commit

Permalink
Fix Quaternion::identity()
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Oct 11, 2024
1 parent f89b4ac commit 55633cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion program/cpp/api/quaternion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ MAKE_SYSCALL(ECALL_QUAT_OPS, void, sys_quat_ops, unsigned idx, Quaternion_Op, ..

Quaternion Quaternion::identity() {
// CREATE uses idx for the constructor type
sys_quat_ops(0, Quaternion_Op::CREATE);
Quaternion q;
sys_quat_ops(0, Quaternion_Op::CREATE, &q);
return q;
}

Quaternion::Quaternion(double p_x, double p_y, double p_z, double p_w) {
Expand Down

0 comments on commit 55633cf

Please sign in to comment.