powered by
Calculates the angle (in radians) of the rotation taking one orientation to another.
rotation.angle(x) rotation.distance(x, y)
rotation.distance returns a vector of length max(length(x), length(y))
rotation.distance
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).
x
y
rotation.angle is equivalent to calculating the rotation.distance to the identity matrix.
rotation.angle
Two orientation objects
Duncan Murdoch
If y is missing in a call to rotation.distance, it is treated as the identity, i.e. rotation.angle(x) is calculated.
rotation.angle(x)
orientation-class, rotation.angle
orientation-class
rotation.angle(eulerzyx(1,0,0)) rotation.distance(eulerzyx(1,0,0), eulerzyx(0,1,0))
Run the code above in your browser using DataLab