Skip to content

Commit

Permalink
Update axis1 and axis2 according to the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Nov 8, 2024
1 parent 33dbddb commit 6a5de65
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 25 deletions.
20 changes: 12 additions & 8 deletions R/jnd2xyz.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@
#' (for no first rotation in the 3-dimensional case) or must match name
#' in the original data that was used for [coldist()]. Defaults to 'u'.
#' (only used if data has 3 dimensions).
#' @param axis1 A vector of length 3 composed of 0's and 1's, with
#' 1's representing the axes (x, y, z) to rotate around. Defaults to c(1, 1, 0), such
#' that the rotation aligns with the xy plane (only used if data has 2 or 3 dimensions).
#' Ignored if `ref1` is `NULL` (in 3-dimensional case only)
#' @param axis2 A vector of length 3 composed of 0's and 1's, with
#' 1's representing the axes (x, y, z) to rotate around. Defaults to c(0, 0, 1), such
#' that the rotation aligns with the z axis (only used if data has 3 dimensions).
#' Ignored if `ref2` is `NULL` (in 3-dimensional case only)
#' @param axis1 A vector of length number of cones minus 1 composed of 0's and
#' 1's, with 1's representing the axes (x, y, z) to rotate around. Defaults to
#' c(1, 1, 0) in 3 dimensions, such that the rotation aligns with the xy plane,
#' and c(1, 0) in 2 dimentions, such that the rotation is centered on the x
#' axis. Ignored if `ref1` is `NULL` (in 3-dimensional case only). Ignored for
#' dichromats.
#' @param axis2 A vector of length number of cones minus 1 composed of 0's and
#' 1's, with 1's representing the axes (x, y, z) to rotate around. Defaults to
#' c(0, 0, 1) in 3 dimensions, such that the rotation aligns with the z axis,
#' and c(0, 1) in 2 dimentions, such that the rotation is centered on the y
#' axis. Ignored if `ref1` is `NULL` (in 3-dimensional case only). Ignored for
#' dichromats.
#'
#' @examples
#' # Load floral reflectance spectra
Expand Down
20 changes: 12 additions & 8 deletions man/jnd2xyz.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 13 additions & 9 deletions man/jndrot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a5de65

Please sign in to comment.