Function coord_transforms::d2::logpolar2cartesian [] [src]

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

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 = erho * cos(theta)
  • y = erho * sin(theta)