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

Method scale

extensions/olcPGEX_Wireframe.h:93–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 void translate(float x, float y) { identity(); auto& m = (*this); m(2, 0) = x; m(2, 1) = y; }
92 void translate(const olc::v2d_generic<T>& v) { translate(v.x, v.y); }
93 void scale(float x, float y) { identity(); auto& m = (*this); m(0, 0) = x; m(1, 1) = y; }
94 void scale(const olc::v2d_generic<T>& v) { return scale(v.x, v.y); }
95 void rotate(float a) { identity(); auto& m = (*this); m(0, 0) = cos(a); m(0, 1) = sin(a); m(1, 0) = -m(0, 1); m(1, 1) = m(0, 0); }
96

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected