createTransform {hitandrun}R Documentation

Create transformation matrices

Description

This function takes a basis, consisting of an n×mn \times m change of basis matrix and an nn-vector representing the origin of the mm-space, and generates a matrix to transform points in the mm-space, given in homogeneous coordinates, to the nn-space.

The inverse transform can also be generated, and conversion can be to homogeneous coordinates instead of Cartesian ones.

Usage

createTransform(basis, inverse=FALSE, keepHomogeneous=inverse)

Arguments

basis

Basis (and origin) for the mm-space (see solution.basis)

inverse

TRUE to convert from nn-space coordinates to mm-space coordinates

keepHomogeneous

TRUE to convert to homogeneous coordinates rather than Cartesian

Details

Multiply a coordinate vector in homogeneous coordinates by pre-multiplying by the generated matrix (see examples).

Value

A transformation matrix.

Author(s)

Gert van Valkenhoef

See Also

solution.basis


[Package hitandrun version 0.5-6 Index]