RobinHankin/onion

as.orthogonal function error

Closed this issue · 2 comments

Hi,

I am using onion package to generate set orthogonal matrices from quaternions.

I tried to convert a quaternion to an equivalent orthogonal matrix.

It gave me an error: Error in Re(q1) : non-numeric argument to function

I tried following sequence:

q1 <- rquat(1)
q1
An object of class "quaternion"
Slot "x":
[,1]
Re -0.7134218
i -1.0694264
j -1.4381244
k -0.6852207

as.orthogonal(q1)
Error in Re(Q) : non-numeric argument to function

I tried example as mention in documentation as well. It also gave me an error.

as.orthogonal(rquat(q1))
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'z' in selecting a method for function 'Norm': error in evaluating the argument 'data' in selecting a method for function 'matrix': invalid arguments.

I would appreciate your response.

Mamta