Struct ArithmeticProgression
Represents an arithmetic progression (AP).
Properties
first
public float first { get; }
commonDifference
public float commonDifference { get; }
this[]
public float this[int index] { get; }
Constructors
ArithmeticProgression(float first, float commonDifference)
public ArithmeticProgression(float first, float commonDifference)
ArithmeticProgression()
public ArithmeticProgression()
Methods
Create(float min, float max, int internvalCount)
public static ArithmeticProgression Create(float min, float max, int internvalCount)
GetInterval(int index)
public Range GetInterval(int index)
GetClosestTerm(float value)
public float GetClosestTerm(float value)
GetTermIndex(float value)
public int GetTermIndex(float value)
GetIntervalIndex(float value)
public int GetIntervalIndex(float value)
ToArray(int length)
public float[] ToArray(int length)
ToArray(float[] result, int length)
public void ToArray(float[] result, int length)
ToList(IList<float> result, int length)
public void ToList(IList<float> result, int length)