rotation.distance: Rotation angle or distance

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/utils.r

Description

Calculates the angle (in radians) of the rotation taking one orientation to another.

Usage

1
2

Arguments

x,y

Two orientation objects

Details

If y is missing in a call to rotation.distance, it is treated as the identity, i.e. rotation.angle(x) is calculated.

Value

rotation.distance returns a vector of length max(length(x), length(y)) containing the angle of the rotation taking corresponding elements of x to y (with the usual recycling rules if they are different lengths).

rotation.angle is equivalent to calculating the rotation.distance to the identity matrix.

Author(s)

Duncan Murdoch

See Also

orientation-class, rotation.angle

Examples

1
2

orientlib documentation built on May 30, 2017, 5:08 a.m.

Search within the orientlib package
Search all R packages, documentation and source code