rigidbody function

Rigid body transformations

Rigid body transformations

Applies a rigid body transformations to a landmark configuration or array

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

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

Returns

The transformed coordinates (X - trans) Rx Ry Rz

Examples

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

Author(s)

Ian Dryden