---
name: "get_scaling_matrix"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/get_scaling_matrix/3alleg4"
---

# get\_scaling\_matrix(3alleg4)

Constructs a scaling matrix. Allegro game programming library.

## NAME

get\_scaling\_matrix, get\_scaling\_matrix\_f - Constructs a scaling matrix. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void get\_scaling\_matrix(MATRIX \*m, fixed x, fixed y, fixed z);**

**void get\_scaling\_matrix\_f(MATRIX\_f \*m, float x, float y, float z);**

## DESCRIPTION

Constructs a scaling matrix, storing it in m. When applied to the point  (px, py, pz), this matrix will produce the point (px\*x, py\*y, pz\*z). In  other words, it stretches or shrinks things.

## SEE ALSO

**apply\_matrix**(3alleg4), **get\_transformation\_matrix**(3alleg4), **qscale\_matrix**(3alleg4)
