so3
Description
The so3
object represents an SO(3) rotation in 3-D in a
right-handed Cartesian coordinate system.
The SO(3) rotation is a 3-by-3 orthonormal rotation matrix. For example, these are orthonormal rotation matrices for rotations of ϕ, ψ, and θ about the x-, y-, and z-axis, respectively:
, ,
For more information, see the 3-D Orthonormal Rotation Matrix section.
This object acts like a numerical matrix, enabling you to compose rotations using multiplication and division.
Creation
Syntax
Description
3-D Rotation Representations
rotation = so3
creates an SO(3) rotation representing an
identity rotation with no translation.
rotation = so3(
creates an SO(3)
rotation representing a pure rotation defined by the orthonormal rotation
rotation
)rotation
.
rotation = so3(
creates an
SO(3) rotation from the rotations defined by the quaternion
quaternion
)quaternion
.
rotation = so3(
creates an
SO(3) rotation from the SE(3) transformation transformation
)transformation
.
Other Numeric 3-D Rotation Representations
rotation = so3(
creates an
SO(3) rotation from the rotations defined by the Euler angles
euler
,"eul")euler
.
rotation = so3(
creates an
SO(3) rotation from the rotations defined by the numeric quaternions
quat
,"quat")quat
.
rotation = so3(
creates an
SO(3) rotation from the rotations defined by the axis-angle rotation
axang
,"axang")axang
.
Note
If any inputs contain more than one rotation, then the output
rotation
is an N-element array of
so3
objects corresponding to each of the N
input rotations.
Input Arguments
Object Functions
Examples
Algorithms
Extended Capabilities
Version History
Introduced in R2023b