Vec.toCartesian

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

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

Return Value

Type: MY_TYPE

A reference to this vector, for method chaining.

Meta