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]
The get/set value accessor
public abstract double this[uint i] { get; set; }
Parameters
i
uintvalue index
Property Value
Size
The total 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
operator +(VectorState, Vector)
Returns the addition of a VectorState and a Vector
public static Vector operator +(VectorState a, Vector b)
Parameters
a
VectorStateb
Vector
Returns
operator +(VectorState, VectorState)
Returns the addition of a 'Vector' with a 'Vector'
public static Vector operator +(VectorState a, VectorState b)
Parameters
Returns
operator +(VectorState, double)
Returns the addition of a 'Vector' with a 'double'
public static Vector operator +(VectorState a, double b)
Parameters
a
VectorStateb
double
Returns
operator +(double, VectorState)
Returns the addition of a 'double' with a 'Vector'
public static Vector operator +(double a, VectorState b)
Parameters
a
doubleb
VectorState
Returns
operator /(VectorState, VectorState)
Returns the division of a 'Vector' with a 'Vector'
public static Vector operator /(VectorState a, VectorState b)
Parameters
Returns
operator /(VectorState, double)
Returns the division of a 'Vector' with a 'double'
public static Vector operator /(VectorState a, double b)
Parameters
a
VectorStateb
double
Returns
operator /(double, VectorState)
Returns the division of a 'double' with a 'Vector'
public static Vector operator /(double a, VectorState b)
Parameters
a
doubleb
VectorState
Returns
operator ==(VectorState, VectorState)
Returns true if 'Vector' is equal to 'Vector'
public static bool operator ==(VectorState a, VectorState b)
Parameters
a
VectorStateThe 1st 'Vector'
b
VectorStateThe 2nd 'Vector'
Returns
operator ==(VectorState, double)
Returns true if 'Vector' is equal to 'double'
public static bool operator ==(VectorState a, double b)
Parameters
a
VectorStateThe 1st 'Vector'
b
doubleThe 2nd 'double'
Returns
operator ==(double, VectorState)
Returns true if 'double' is equal to 'Vector'
public static bool operator ==(double a, VectorState b)
Parameters
a
doubleThe 1st 'double'
b
VectorStateThe 2nd 'Vector'
Returns
explicit operator Matrix3(VectorState)
public static explicit operator Matrix3(VectorState a)
Parameters
Returns
explicit operator Vector3(VectorState)
public static explicit operator Vector3(VectorState a)
Parameters
Returns
explicit operator double(VectorState)
public static explicit operator double(VectorState a)
Parameters
Returns
operator >(VectorState, VectorState)
Returns true if 'Vector' is greater than 'Vector'
public static bool operator >(VectorState a, VectorState b)
Parameters
a
VectorStateThe 1st 'Vector'
b
VectorStateThe 2nd 'Vector'
Returns
operator >(VectorState, double)
Returns true if 'Vector' is greater than 'double'
public static bool operator >(VectorState a, double b)
Parameters
a
VectorStateThe 1st 'Vector'
b
doubleThe 2nd 'double'
Returns
operator >(double, VectorState)
Returns true if 'double' is greater than 'Vector'
public static bool operator >(double a, VectorState b)
Parameters
a
doubleThe 1st 'double'
b
VectorStateThe 2nd 'Vector'
Returns
operator >=(VectorState, VectorState)
Returns true if 'Vector' is greater than or equal to 'Vector'
public static bool operator >=(VectorState a, VectorState b)
Parameters
a
VectorStateThe 1st 'Vector'
b
VectorStateThe 2nd 'Vector'
Returns
operator >=(VectorState, double)
Returns true if 'Vector' is greater than or equal to 'double'
public static bool operator >=(VectorState a, double b)
Parameters
a
VectorStateThe 1st 'Vector'
b
doubleThe 2nd 'double'
Returns
operator >=(double, VectorState)
Returns true if 'double' is greater than or equal to 'Vector'
public static bool operator >=(double a, VectorState b)
Parameters
a
doubleThe 1st 'double'
b
VectorStateThe 2nd 'Vector'
Returns
implicit operator Vector(VectorState)
public static implicit operator Vector(VectorState a)
Parameters
Returns
operator !=(VectorState, VectorState)
Returns true if 'Vector' is not equal to 'Vector'
public static bool operator !=(VectorState a, VectorState b)
Parameters
a
VectorStateThe 1st 'Vector'
b
VectorStateThe 2nd 'Vector'
Returns
operator !=(VectorState, double)
Returns true if 'Vector' is not equal to 'double'
public static bool operator !=(VectorState a, double b)
Parameters
a
VectorStateThe 1st 'Vector'
b
doubleThe 2nd 'double'
Returns
operator !=(double, VectorState)
Returns true if 'double' is not equal to 'Vector'
public static bool operator !=(double a, VectorState b)
Parameters
a
doubleThe 1st 'double'
b
VectorStateThe 2nd 'Vector'
Returns
operator <(VectorState, VectorState)
Returns true if 'Vector' is less than 'Vector'
public static bool operator <(VectorState a, VectorState b)
Parameters
a
VectorStateThe 1st 'Vector'
b
VectorStateThe 2nd 'Vector'
Returns
operator <(VectorState, double)
Returns true if 'Vector' is less than 'double'
public static bool operator <(VectorState a, double b)
Parameters
a
VectorStateThe 1st 'Vector'
b
doubleThe 2nd 'double'
Returns
operator <(double, VectorState)
Returns true if 'double' is less than 'Vector'
public static bool operator <(double a, VectorState b)
Parameters
a
doubleThe 1st 'double'
b
VectorStateThe 2nd 'Vector'
Returns
operator <=(VectorState, VectorState)
Returns true if 'Vector' is less than or equal to 'Vector'
public static bool operator <=(VectorState a, VectorState b)
Parameters
a
VectorStateThe 1st 'Vector'
b
VectorStateThe 2nd 'Vector'
Returns
operator <=(VectorState, double)
Returns true if 'Vector' is less than or equal to 'double'
public static bool operator <=(VectorState a, double b)
Parameters
a
VectorStateThe 1st 'Vector'
b
doubleThe 2nd 'double'
Returns
operator <=(double, VectorState)
Returns true if 'double' is less than or equal to 'Vector'
public static bool operator <=(double a, VectorState b)
Parameters
a
doubleThe 1st 'double'
b
VectorStateThe 2nd 'Vector'
Returns
operator *(VectorState, VectorState)
Returns the multiplication of a 'Vector' with a 'Vector'
public static Vector operator *(VectorState a, VectorState b)
Parameters
Returns
operator *(VectorState, double)
Returns the multiplication of a 'Vector' with a 'double'
public static Vector operator *(VectorState a, double b)
Parameters
a
VectorStateb
double
Returns
operator *(double, VectorState)
Returns the multiplication of a 'double' with a 'Vector'
public static Vector operator *(double a, VectorState b)
Parameters
a
doubleb
VectorState
Returns
operator -(VectorState, VectorState)
Returns the subtraction of a 'Vector' with a 'Vector'
public static Vector operator -(VectorState a, VectorState b)
Parameters
Returns
operator -(VectorState, double)
Returns the subtraction of a 'Vector' with a 'double'
public static Vector operator -(VectorState a, double b)
Parameters
a
VectorStateb
double
Returns
operator -(double, VectorState)
Returns the subtraction of a 'double' with a 'Vector'
public static Vector operator -(double a, VectorState b)
Parameters
a
doubleb
VectorState