Class VectorState
- Namespace
- NominalSystems.Maths
- Assembly
- NominalSystems.Maths.dll
A base class for vector value and variable classes.
public abstract class VectorState
- Inheritance
-
VectorState
- Derived
Constructors
VectorState()
protected VectorState()
Properties
this[int]
public abstract double this[int i] { get; set; }
Parameters
i
int
Property Value
this[uint]
public abstract double this[uint i] { get; set; }
Parameters
i
uint
Property Value
Size
public abstract uint Size { get; }
Property Value
Methods
Copy()
A function for creating a value copy of this class.
public abstract VectorState Copy()
Returns
MakeNull()
A method allowing values to be set to null.
public abstract 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 abstract void ResetValue()
Resize(int)
Change the size of the Vector State, if able. Will return false if the vector class cannot be resized.
public bool Resize(int size)
Parameters
size
intThe new size of the Vector State
Returns
- bool
A boolean indicating if the vector resize was successful.
Resize(uint)
Change the size of the Vector State, if able. Will return false if the vector class cannot be resized.
public virtual bool Resize(uint size)
Parameters
size
uintThe new size of the Vector State
Returns
- bool
A boolean indicating if the vector resize was successful.
Operators
explicit operator Matrix3(VectorState)
Explicit cast of 'VectorState' to a 'Matrix3'.
public static explicit operator Matrix3(VectorState a)
Parameters
Returns
explicit operator Vector3(VectorState)
Explicit cast of 'VectorState' to a 'Vector3'.
public static explicit operator Vector3(VectorState a)
Parameters
Returns
explicit operator double(VectorState)
Explicit cast of 'VectorState' to a 'double'.
public static explicit operator double(VectorState a)
Parameters
Returns
implicit operator Vector(VectorState)
Explicit cast of 'VectorState' to a 'Vector'.
public static implicit operator Vector(VectorState a)