MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / Scale

Function Scale

src/luxrays/core/geometry/transform.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43Transform Scale(float x, float y, float z) {
44 Matrix4x4 m(x, 0, 0, 0,
45 0, y, 0, 0,
46 0, 0, z, 0,
47 0, 0, 0, 1);
48 Matrix4x4 minv(1.f / x, 0, 0, 0,
49 0, 1.f / y, 0, 0,
50 0, 0, 1.f / z, 0,
51 0, 0, 0, 1);
52 return Transform(m, minv);
53}
54
55Transform RotateX(float angle) {
56 const float sin_t = sinf(Radians(angle));

Callers 9

yyparseFunction · 0.85
OrthographicFunction · 0.85
PerspectiveFunction · 0.85
initMethod · 0.85
initMethod · 0.85
InitCameraTransformsMethod · 0.85
InitCameraTransformsMethod · 0.85
InitCameraTransformsMethod · 0.85
RegularSPDMethod · 0.85

Calls 1

TransformClass · 0.50

Tested by 1

InitCameraTransformsMethod · 0.68