Skip to main content

logpolar2cartesian

Function logpolar2cartesian 

Source
pub fn logpolar2cartesian(logpol_vec: &Vector2<f64>) -> Vector2<f64>
Expand description

Converts 2-d log polar coordinates to 2-d cartesian coordinates

§Arguments

  • logpol_vec - Vector2 reference to the log polar vector (rho, theta) in radians

§Return Value

  • nalgebra::Vector2<f64> - x, y

§Formula

  • x = e^rho * cos(theta)
  • y = e^rho * sin(theta)