Click or drag to resize

FloatVectorTransform(FuncSingle, Single) Method

Modifies the elements of this vector by applying the given unary function to each element.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatVector Transform(
	Func<float, float> function
)

Parameters

function  FuncSingle, Single
A delegate object representing a function that takes a single float parameter and returns a float.

Return Value

FloatVector
A reference to self.
Remarks
Upon exit, this[i] = function(this[i]).
See Also