Skip to content

Commit

Permalink
Remove aliases in Quaternion
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaTheFoxgirl committed Jun 8, 2024
1 parent 27f044e commit 1ff3407
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions inmath/linalg.d
Original file line number Diff line number Diff line change
Expand Up @@ -2227,13 +2227,11 @@ struct Quaternion(type) {
y = -y;
z = -z;
}
alias conjugate = invert; /// ditto

/// Returns an inverted copy of the current quaternion.
Quaternion inverse() const {
return Quaternion(w, -x, -y, -z);
}
alias conjugated = inverse; /// ditto

unittest {
quat q1 = quat(1.0f, 1.0f, 1.0f, 1.0f);
Expand Down

0 comments on commit 1ff3407

Please sign in to comment.