SMC_Quat1_Derive (FUN)

 

FUNCTION SMC_Quat1_Derive : BOOL

Computes the numerical derivative of two unit quaternions

q0 = q(x-h/2), q1 = q(x+h/2) as

q = ln(q1*q0^(-1)) / h.

InOut:

Scope

Name

Type

Comment

Return

SMC_Quat1_Derive

BOOL

Inout

q

SMC_Quat

The axis/angle difference quotient expressed as a quaternion

Inout Const

q0

SMC_Quat

The unit quaternion evaluated h/2 to the left

q1

SMC_Quat

The unit quaternion evaluated h/2 to the right

Input

h

LREAL

The step size, must be <> 0