Class VectorVariable
- Namespace
- NominalSystems.Maths
- Assembly
- NominalSystems.Maths.dll
A Vector State that contains a bound Vector value which updates whenever the original value is updated, and vis versa.
public class VectorVariable : VectorState
- Inheritance
-
VectorVariable
- Inherited Members
Constructors
VectorVariable(object, string)
A VectorVariable constructor that binds a vector variable
public VectorVariable(object obj, string name)
Parameters
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.