FunVec3TItem Property

Directly returns the element at the i-th position. Use Get(Int32, Int32, Int32) for the bound-checked optional version.
C#
var underlyingArray = new int[] { 10, 11, 12 };
FunVec1<int> vec = new(underlyingArray);

Assert(vec[1] == 11);

// var x = vec[-1]; => out-of-bounds, throws!
// var x = vec[3]; => out-of-bounds, throws!

Definition

Namespace: Orx.Fun.FunVec
Assembly: Orx.Fun.FunVec (in Orx.Fun.FunVec.dll) Version: 1.0.0
C#
public T this[
	int i,
	int j,
	int k
] { get; }

Parameters

i  Int32
First index of the element to be retrieved.
j  Int32
Second index of the element to be retrieved.
k  Int32
Third index of the element to be retrieved.

Property Value

T

See Also