Function coord_transforms::d2::polar2cartesian
[−]
[src]
pub fn polar2cartesian(logpol_vec: &Vector2<f64>) -> Vector2<f64>
Converts 2-d polar coordinates to 2-d cartesian coordinates
Arguments
pol_vec
- Vector2 reference to the polar vector (rho, theta) in radians
Return Value
nalgebra::Vector2<f64>
- x, y
Formula
- x = rho * cos(theta)
- y = rho * sin(theta)