Class VectorValue
- Namespace
- NominalSystems.Maths
- Assembly
- NominalSystems.Maths.dll
A Vector State storing a vector of any size.
public class VectorValue : VectorState
- Inheritance
-
VectorValue
- Inherited Members
Constructors
VectorValue()
Default constructor
public VectorValue()
VectorValue(Vector)
Constructor that sets the value to a vector parameter's values.
public VectorValue(Vector a)
Parameters
a
VectorVector parameter
VectorValue(params double[])
Constructor that creates a vector that stores a series of double values.
public VectorValue(params double[] doubles)
Parameters
doubles
double[]The values to store in the vector.
VectorValue(int)
Constructor that creates a new Vector of indicated size.
public VectorValue(int a)
Parameters
a
intThe size of the contained vector.
VectorValue(uint)
Constructor that creates a new Vector of indicated size.
public VectorValue(uint a)
Parameters
a
uintThe size of the contained vector.
Properties
this[int]
public override double this[int i] { get; set; }
Parameters
i
int
Property Value
this[uint]
The get/set value accessor
public override double this[uint i] { get; set; }
Parameters
i
uintvalue index
Property Value
Size
The total size
public override uint Size { get; }
Property Value
Methods
Copy()
A function for creating a value copy of this class.
public override VectorState Copy()
Returns
MakeNull()
A method allowing values to be set to null.
public override bool MakeNull()
Returns
- bool
A boolean indicating if the value was successfully set to null.
ResetValue()
Reset the value of the VectorState to it's default value.
public override void ResetValue()
Resize(uint)
Change the size of the Vector State, if able. Will return false if the vector class cannot be resized.
public override bool Resize(uint size)
Parameters
size
uintThe new size of the Vector State
Returns
- bool
A boolean indicating if the vector resize was successful.