Learn R Programming

RNiftyReg (version 2.0.0)

isAffine: Check whether an object is an affine matrix

Description

This function returns a logical value indicating whether its argument is, or resembles a 4x4 affine matrix. Affine transformations are a class of linear transformations which preserve points, straight lines and planes, and may consist of a combination of rotation, translation, scale and skew operations.

Usage

isAffine(object, strict = FALSE)

## S3 method for class 'affine': print(x, ...)

Arguments

object
Any R object.
strict
If TRUE, this function just tests whether the object is of class "affine". Otherwise it also tests for an affine-like 4x4 matrix.
x
An "affine" object.
...
Additional parameters to methods. Currently unused.

Value

  • A logical value, which is TRUE if object appears to be an affine matrix.