View source: R/compute_frame_orientation_df.R
compute_frame_orientation | R Documentation |
This function computes frame orientation based on two input vectors.
compute_frame_orientation(v1, v2, recompute, frameorder)
v1 |
A numeric matrix or data frame where each row represents a vector. |
v2 |
A numeric matrix or data frame where each row represents a vector. |
recompute |
An integer indicating whether to recompute the orientation:
|
frameorder |
A numeric vector of length 3 specifying the order of the frames. |
A 3-dimensional array where each slice corresponds to a 3x3 orientation matrix.
v1 <- matrix(c(1, 0, 0, 0, 1, 0, 0, 0, 1), nrow = 3, byrow = TRUE)
v2 <- matrix(c(0, 1, 0, 0, 0, 1, 1, 0, 0), nrow = 3, byrow = TRUE)
recompute <- 1
frameorder <- c(1, 2, 3)
compute_frame_orientation(v1, v2, recompute, frameorder)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.