normalize_with_derivative

Function normalize_with_derivative 

Source
pub fn normalize_with_derivative(
    v: Vector2d,
    dv: Vector2d,
) -> (Vector2d, Vector2d)
Expand description

Normalises a vector and computes the derivative of the normalised vector.

§Parameters

  • v - The vector to normalize
  • dv - The derivative of v

§Returns

A tuple containing the the normalization of v, and its derivative.