dist(x, ...) ## S3 method for class 'SO3':
dist(x, R2 = id.SO3, method = "projected",
p = 1, ...)
## S3 method for class 'Q4':
dist(x, Q2 = id.Q4, method = "projected",
p = 1, ...)
R2
and Q2
are set to the identity rotations
by default. For rotations $R_1$ and
$R_2$ both in $SO(3)$, the Euclidean distance
between them is $$||R_1-R_2||_F$$ where
$||\cdot||_F$ is the Frobenius norm. The
Riemannian distance is defined as $$||Log(R_1^\top
R_2)||_F$$ where $Log$ is the matrix
logarithm, and it corresponds to the misorientation angle
of $R_1^\top R_2$. To compute the distance
matrix use stats::dist()
.