diff options
| author | David Parks <davep@lindenlab.com> | 2009-11-02 19:55:37 +0000 |
|---|---|---|
| committer | David Parks <davep@lindenlab.com> | 2009-11-02 19:55:37 +0000 |
| commit | 3e80fa3dbc943de9b784fedc202ba38cf238f46d (patch) | |
| tree | deeaedd0bf4ed9eb9f99ec47325198efce512e5f /indra/llmath/m4math.cpp | |
| parent | 9a196cdda8fa62b90f6f390b21986712d198f03e (diff) | |
Sync up with render-pipeline-7 ignore-dead-branch
Diffstat (limited to 'indra/llmath/m4math.cpp')
| -rw-r--r-- | indra/llmath/m4math.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llmath/m4math.cpp b/indra/llmath/m4math.cpp index d8e7b4aaf9..7c7f60154d 100644 --- a/indra/llmath/m4math.cpp +++ b/indra/llmath/m4math.cpp @@ -428,6 +428,17 @@ const LLMatrix4& LLMatrix4::initRotTrans(const LLQuaternion &q, const LLVector return (*this); } +const LLMatrix4& LLMatrix4::initScale(const LLVector3 &scale) +{ + setIdentity(); + + mMatrix[VX][VX] = scale.mV[VX]; + mMatrix[VY][VY] = scale.mV[VY]; + mMatrix[VZ][VZ] = scale.mV[VZ]; + + return (*this); +} + const LLMatrix4& LLMatrix4::initAll(const LLVector3 &scale, const LLQuaternion &q, const LLVector3 &pos) { F32 sx, sy, sz; |
