Vec.toPolar

Converts this 2-dimensional vector from Cartesian to Polar coordinates. It is assumed that the first element is the **x** coordinate, and the second element is the **y** coordinate. The first element becomes the **radius** and the second becomes the angle **theta**.

struct Vec(T, size_t size)
ref @nogc
static if(isFloatingPoint!T && size == 2)
MY_TYPE
toPolar
()
if (
isNumeric!T &&
size > 0
)

Return Value

Type: MY_TYPE

A reference to this vector, for method chaining.

Meta