MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / Scale

Method Scale

extensions/olcPGEX_Graphics2D.h:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230 }
231
232 void olc::GFX2D::Transform2D::Scale(float sx, float sy)
233 {
234 // Construct Scale Matrix
235 matrix[2][0][0] = sx; matrix[2][1][0] = 0.0f; matrix[2][2][0] = 0.0f;
236 matrix[2][0][1] = 0.0f; matrix[2][1][1] = sy; matrix[2][2][1] = 0.0f;
237 matrix[2][0][2] = 0.0f; matrix[2][1][2] = 0.0f; matrix[2][2][2] = 1.0f;
238 Multiply();
239 }
240
241 void olc::GFX2D::Transform2D::Shear(float sx, float sy)
242 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected