as_transform2d: Cast to 2D affine transformation matrix

View source: R/affine-methods.r

as_transform2dR Documentation

Cast to 2D affine transformation matrix

Description

as_transform2d() casts to a transform2d() affine transformation matrix

Usage

as_transform2d(x, ...)

## S3 method for class 'transform2d'
as_transform2d(x, ...)

## Default S3 method:
as_transform2d(x, ...)

Arguments

x

An object that can be cast to a

...

Further arguments passed to or from other methods

Value

A transform2d() object

Examples

m <- diag(3L)
as_transform2d(m)

affiner documentation built on April 4, 2025, 4:42 a.m.