orienteringsmatrise
Orienteringsmatrise, or orientation matrix, is a square matrix that encodes the orientation of one coordinate frame relative to another. In general, the columns (or rows, depending on convention) are the coordinates of the basis vectors of the rotated frame expressed in the reference frame. When the matrix is orthogonal and has determinant +1, it represents a proper rotation and belongs to the special orthogonal group SO(3) in three dimensions (or SO(n) in n dimensions). If the determinant is -1, it represents an improper rotation, i.e., a rotation combined with a reflection, reversing orientation.
The orienteringsmatrise is used to transform coordinates between frames. For a vector v expressed in the original
In 2D, the orienteringsmatrise is a 2x2 rotation matrix, typically written as [ [cosθ, -sinθ], [sinθ, cosθ] ].