getComponent

fun getComponent(index: Int): Double

Returns the component at index (0 = x, 1 = y).

Return

A vector component value.

Throws

if index is out of range.