pub fn make_adjoint(vr: &Vector2<f64>, vp: &Vector2<f64>) -> Matrix2<f64>Expand description
The function make_adjoint calculates the adjoint matrix between two vectors.
Arguments:
vr: A vector representing the direction of the reference frame’s x-axis.vp: The parametervprepresents a vectorvp = (p, s), wherepandsare the components of the vector.
Returns:
The function make_adjoint returns a Mat2 object.
Calculates the adjoint matrix for a 2x2 matrix from two vectors.
The adjoint is computed as: | s -p | | -pq pr+s |
Arguments:
vr: A vector representing the row of a 2x2 matrixvp: Another vector representing the row of a 2x2 matrix
Returns:
A 2x2 matrix representing the adjoint