Learn R Programming

shapes (version 1.2.7)

rigidbody: Rigid body transformations

Description

Applies a rigid body transformations to a landmark configuration or array

Usage

rigidbody(X,transx=0,transy=0,transz=0,thetax=0,thetay=0,thetaz=0)

Value

The transformed coordinates (X - trans) Rx Ry Rz

Arguments

X

k x m matrix, or k x m x n array where k = number of landmarks and m = no of dimensions and n is no of specimens

transx

negative shift in x-coordinates

transy

negative shift in y-coordinates

transz

negative shift in z-coordinates

thetax

Rotation about x-axis in degrees

thetay

Rotation about y-axis in degrees

thetaz

Rotation about z-axis in degrees

Author

Ian Dryden

Examples

Run this code
data(gorf.dat)
plotshapes ( rigidbody(gorf.dat , 0, 0, 0, 0, 0, -90 ) )

Run the code above in your browser using DataLab