MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / scale

Function scale

Source/Falcor/Utils/Math/MatrixMath.h:190–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188/// Apply a scale to a 4x4 matrix.
189template<typename T>
190matrix<T, 4, 4> scale(const matrix<T, 4, 4>& m, const vector<T, 3>& v)
191{
192 matrix<T, 4, 4> result;
193 result.setCol(0, m.getCol(0) * v[0]);
194 result.setCol(1, m.getCol(1) * v[1]);
195 result.setCol(2, m.getCol(2) * v[2]);
196 result.setCol(3, m.getCol(3));
197 return result;
198}
199
200/// Compute determinant of a 2x2 matrix.
201template<typename T>

Callers 2

matrixFromScalingFunction · 0.85
CPU_TESTFunction · 0.85

Calls 2

setColMethod · 0.80
getColMethod · 0.80

Tested by 1

CPU_TESTFunction · 0.68