Skip to contents

Random sample of matrices in SO(3).

Usage

rrot(n)

Arguments

n

integer. number of random samples to be generated

Value

list of rotation matrices

Examples

set.seed(20250411)
# Generate 10 random SO(3) rotation matrices
r <- rrot(10)

# convert SO(3) matrices to "Pair"
rp <- lapply(r, rot2pair) |> lapply(unclass)
rp <- do.call(rbind, args = rp) |>
  as.Pair()
  
# plot pairs
plot(rp)