polar_to_cartesian_arrays Subroutine

public pure subroutine polar_to_cartesian_arrays(theta, r, x, y, theta_offset, clockwise)

Convert arrays of polar coordinates to Cartesian

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: theta(:)
real(kind=wp), intent(in) :: r(:)
real(kind=wp), intent(out) :: x(:)
real(kind=wp), intent(out) :: y(:)
real(kind=wp), intent(in), optional :: theta_offset
logical, intent(in), optional :: clockwise