Package: cairo

Function cairo:matrix-init-identity

Lambda List

cairo:matrix-init-identity (matrix)

Arguments

matrix -- a cairo:matrix-t instance to initialize

Return Value

The cairo:matrix-t instance set to be an identity transformation.

Details

Modifies the matrix to be an identity transformation.

Examples

The cairo:with-matrix initialises the matrix to the identity transformation when no values are given.
(cairo:with-matrix (matrix)
  (cairo:matrix-to-float matrix))
=> (1.0d0 0.0d0 0.0d0 1.0d0 0.0d0 0.0d0)    
 

See also

2025-1-18