| imath_rotate_point | R Documentation |
This rotates a point around the origin at the angles specified. This function is primarily just included as an example of integrating the Imath library into a package. See imath-info.cpp in the source for the corresponding C++ code.
imath_rotate_point(point, angles)
point |
A length-3 numeric vector (x, y, z) |
angles |
A length-3 numeric vector (rotation angles in radians) |
The rotated point as an R numeric vector
# This rotates a point around an angle.
point = c(1.0, 0.0, 0.0)
angles = c(0.0, pi/4, 0.0)
imath_rotate_point(point, angles)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.