FunVec3T(FuncInt32, Int32, Int32, T, Opt`1Int32, Opt`1FuncInt32, Int32, Opt`1FuncInt32, Int32, Int32) Constructor

3-dimensional jagged collection with optional lengths, values of which are determined by the getValue function.

See FunVec2T(FuncInt32, Int32, T, OptInt32, OptFuncInt32, Int32) for two-dimensional examples.

Definition

Namespace: Orx.Fun.FunVec
Assembly: Orx.Fun.FunVec (in Orx.Fun.FunVec.dll) Version: 1.0.0
C#
public FunVec3(
	Func<int, int, int, T> getValue,
	Opt<int> length1 = default,
	Opt<Func<int, int>> getLength2 = default,
	Opt<Func<int, int, int>> getLength3 = default
)

Parameters

getValue  FuncInt32, Int32, Int32, T
Function (indices -> value) that returns the value of the element at the given position.
length1  OptInt32  (Optional)
Optional length of the jagged array; will default to None (int.MaxValue) when omitted.
getLength2  OptFuncInt32, Int32  (Optional)
Optional function (i -> length) to get length of the i-th collection; when omitted will default to None which will yield to a length of int.MaxValue for any index.
getLength3  OptFuncInt32, Int32, Int32  (Optional)
Optional function (i,j -> length) to get length of the (i,j)-th collection; when omitted will default to None which will yield to a length of int.MaxValue for any indices.

See Also