Programming Reference for VirtualLab Fusion  2025.1
Loading...
Searching...
No Matches
VectorB Struct Reference

This struct defines a two-dimensional vector of boolean values. More...

Inheritance diagram for VectorB:

Public Member Functions

override bool Equals (Object obj)
 Value comparing implementation of Equals (required, according to .net Help) This function compares the pointers of the present object and the parameter object for equality.
 
override int GetHashCode ()
 Generates and returns a hash code of the present object. Two objects are equal if they generate the same hash code. The Hash code is generated using a XOR operation between the two data members x, y. Additional a XOR operation is used between lower and higher bits.
 
override string ToString ()
 Converts a VectorB object into a string of format (true/false ; true/false).
 
 VectorB (bool x, bool y)
 Creates a VectorB from to boolean values.
 

Static Public Member Functions

static VectorB operator! (VectorB a)
 Calculates the inverse VectorB object.
 
static bool operator!= (VectorB vector1, VectorB vector2)
 Compares two VectorB for inequality. The comparison will be done by comparing the values of the two x- and y- components respectively.
 
static VectorB operator& (VectorB a, VectorB b)
 Calculates the AND of two VectorB objects.
 
static bool operator== (VectorB vector1, VectorB vector2)
 Compares two VectorB for equality. The comparison will be done by comparing the values of the two x- and y- components respectively.
 
static VectorB operator| (VectorB a, VectorB b)
 Calculates the OR of two VectorB objects.
 

Public Attributes

bool X
 X value of the VectorB object.
 
bool Y
 Y value of the VectorB object.
 

Detailed Description

This struct defines a two-dimensional vector of boolean values.

Constructor & Destructor Documentation

◆ VectorB()

VectorB ( bool  x,
bool  y 
)

Creates a VectorB from to boolean values.

Parameters
xX value of new VectorB object.
yY value of new VectorB object.

Member Function Documentation

◆ Equals()

override bool Equals ( Object  obj)

Value comparing implementation of Equals (required, according to .net Help) This function compares the pointers of the present object and the parameter object for equality.

Parameters
objVectorB to be compared.
Returns
Returns true if booth object pointers are equal.

◆ GetHashCode()

override int GetHashCode ( )

Generates and returns a hash code of the present object. Two objects are equal if they generate the same hash code. The Hash code is generated using a XOR operation between the two data members x, y. Additional a XOR operation is used between lower and higher bits.

Returns
The calculate hash code.

◆ operator!()

static VectorB operator! ( VectorB  a)
static

Calculates the inverse VectorB object.

Parameters
aVectorB object to invert.
Returns
Result of operation.

◆ operator!=()

static bool operator!= ( VectorB  vector1,
VectorB  vector2 
)
static

Compares two VectorB for inequality. The comparison will be done by comparing the values of the two x- and y- components respectively.

Parameters
vector1First VectorB object to compare.
vector2Second VectorB object to compare.
Returns
Returns true if the two objects are unequal.

◆ operator&()

static VectorB operator& ( VectorB  a,
VectorB  b 
)
static

Calculates the AND of two VectorB objects.

Parameters
aFirst VectorB object.
bSecond VectorB object.
Returns
Result of operation.

◆ operator==()

static bool operator== ( VectorB  vector1,
VectorB  vector2 
)
static

Compares two VectorB for equality. The comparison will be done by comparing the values of the two x- and y- components respectively.

Parameters
vector1First VectorB object to compare.
vector2Second VectorB object to compare.
Returns
Returns true if the two objects are equal.

◆ operator|()

static VectorB operator| ( VectorB  a,
VectorB  b 
)
static

Calculates the OR of two VectorB objects.

Parameters
aFirst VectorB object.
bsSecond VectorB object.
Returns
Result of operation.

◆ ToString()

override string ToString ( )

Converts a VectorB object into a string of format (true/false ; true/false).

Returns
String containing the vector information.

inheritdoc/>