Exemplo n.º 1
0
func (self *Matrix) InitRotate(radians float64) {
	C.cairo_matrix_init_rotate(self.cairo_matrix_t(), C.double(radians))
}
Exemplo n.º 2
0
//NewRotateMatrix creates a matrix that rotates by radians.
//
//Originally cairo_matrix_init_rotate.
func NewRotateMatrix(radians float64) Matrix {
	var m C.cairo_matrix_t
	C.cairo_matrix_init_rotate(&m, C.double(radians))
	return Matrix{m}
}