MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / set_from_st

Method set_from_st

src/math/linear_algebra.cpp:101–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void mat4::set_from_st(const float scaleX,
102 const float scaleY,
103 const float scaleZ,
104 const float x,
105 const float y,
106 const float z) {
107 float* data = this->data();
108
109 data[0] = scaleX;
110 data[5] = scaleY;
111 data[10] = scaleZ;
112 data[12] = x;
113 data[13] = y;
114 data[14] = z;
115
116 data[1] = data[2] = data[3] = data[4] = 0.0f;
117 data[6] = data[7] = data[8] = data[9] = 0.0f;
118 data[11] = 0.0f;
119 data[15] = 1.0f;
120}
121
122void mat4::set_from_srt(const float scaleX,
123 const float scaleY,

Callers 2

drawMethod · 0.80
TESTFunction · 0.80

Calls 1

dataMethod · 0.45

Tested by 1

TESTFunction · 0.64