mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1035598 - Add a ChangeBasis() method to Matrix4x4. r=mattwoodrow
This commit is contained in:
parent
76d325bbe8
commit
fa75a0d598
@ -461,6 +461,17 @@ public:
|
||||
return *this;
|
||||
}
|
||||
|
||||
Matrix4x4 &ChangeBasis(Float aX, Float aY, Float aZ)
|
||||
{
|
||||
// Translate to the origin before applying this matrix
|
||||
Translate(-aX, -aY, -aZ);
|
||||
|
||||
// Translate back into position after applying this matrix
|
||||
PostTranslate(aX, aY, aZ);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool operator==(const Matrix4x4& o) const
|
||||
{
|
||||
// XXX would be nice to memcmp here, but that breaks IEEE 754 semantics
|
||||
|
Loading…
Reference in New Issue
Block a user