setComponent

fun setComponent(index: Int, value: Double): Vector3

Sets the component at index (0 = x, 1 = y, 2 = z) to value.

Return

A reference to this vector.

Throws

if index is out of range.