toArray

fun toArray(): IntArray

Converts this Size to an IntArray.

The array contains exactly three elements in the order: [width, height, depth].

Return

An array of integers representing width, height, and depth.