Package: graphene

Function graphene:matrix-scale

Lambda List

graphene:matrix-scale (matrix xfactor yfactor zfactor)

Arguments

matrix -- a graphene:matrix-t instance
xfactor -- a number for the scaling factor on the X axis
yfactor -- a number for the scaling factor on the Y axis
zfactor -- a number for the scaling factor on the Z axis

Return Value

The graphene:matrix-t instance with the result.

Details

Adds a scaling transformation to the matrix, using the three given factors. This is the equivalent of calling the graphene:matrix-init-scale function and then multiplying the matrix with the scale matrix.

Notes

All numbers are coerced to a single float before being passed to the foreign C function.
 

See also

#2024-12-30