make_inverse

Function make_inverse 

Source
pub fn make_inverse(vr: &Vector2<f64>, vp: &Vector2<f64>) -> Matrix2<f64>
Expand description

The function make_inverse calculates the inverse of a 2x2 matrix.

Arguments:

  • vr: A vector representing the row of a 2x2 matrix. The components of the vector are vr.x_ and vr.y_.
  • vp: The parameter vp represents a 2D vector with components x and y.

Returns:

The function make_inverse returns a Mat2 object.