Programming Reference for VirtualLab Fusion  2022.1
Public Member Functions | Static Public Member Functions | Properties | List of all members
PhysicalValuePair Class Reference

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class for a pair of physical values. More...

Public Member Functions

 PhysicalValuePair (double value1, double value2, PhysicalProperty property1, PhysicalProperty property2)
 Constructor with the most important parameters More...
 
 PhysicalValuePair (double value1, double value2, string name1, string name2, PhysicalProperty property1, PhysicalProperty property2)
 Constructor with the all parameters More...
 
 PhysicalValuePair (PhysicalValue value1, PhysicalValue value2)
 Constructor with two physical value parameters More...
 
 PhysicalValuePair (PhysicalValuePair pair)
 Copy constructor More...
 
override string ToString ()
 Overridden ToString function. More...
 

Static Public Member Functions

static implicit operator VectorD? (PhysicalValuePair physicalValuePair)
 Converts a PhysicalValuePair object into a VectorD object. More...
 
static bool operator!= (PhysicalValuePair value1, PhysicalValuePair value2)
 Compares two PhysicalValuePair for inequality. More...
 
static bool operator== (PhysicalValuePair pair1, PhysicalValuePair pair2)
 Compares two PhysicalValuePair for equality. More...
 

Properties

string Name1 [get, set]
 Meaning of value1.
 
string Name2 [get, set]
 Meaning of value2.
 
PhysicalProperty PhysicalProperty1 [get, set]
 The physical property of value1.
 
PhysicalProperty PhysicalProperty2 [get, set]
 The physical property of value2.
 
PhysicalValue PhysicalValue1 [get]
 The value of the first physical value.
 
PhysicalValue PhysicalValue2 [get]
 The value of the second physical value.
 
double Value_X [get, set]
 First numerical value
 
double Value_Y [get, set]
 Second numerical value
 
VectorD Values [get]
 Gets the pair of values just as vactor of two doubles.
 

Detailed Description

This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class for a pair of physical values.

Constructor & Destructor Documentation

◆ PhysicalValuePair() [1/4]

PhysicalValuePair ( double  value1,
double  value2,
string  name1,
string  name2,
PhysicalProperty  property1,
PhysicalProperty  property2 
)

Constructor with the all parameters

Parameters
value1First numerical value
value2Second numerical value
name1First value's name.
name2Second value's name.
property1The physical property of the physical value1.
property2The physical property of the physical value2.

◆ PhysicalValuePair() [2/4]

PhysicalValuePair ( double  value1,
double  value2,
PhysicalProperty  property1,
PhysicalProperty  property2 
)

Constructor with the most important parameters

Parameters
value1First numerical value
value2Second numerical value
property1The physical property of the physical value1.
property2The physical property of the physical value2.

◆ PhysicalValuePair() [3/4]

PhysicalValuePair ( PhysicalValue  value1,
PhysicalValue  value2 
)

Constructor with two physical value parameters

Parameters
value1First physical value
value2Second physical value

◆ PhysicalValuePair() [4/4]

Copy constructor

Parameters
pairPhysical value pair to copy

Member Function Documentation

◆ operator VectorD?()

static implicit operator VectorD? ( PhysicalValuePair  physicalValuePair)
static

Converts a PhysicalValuePair object into a VectorD object.

Parameters
physicalValuePairThe VectorD object to convert into a VectorD object.
Returns
Converted VectorD object. Null if the physicalValuePair is null.

◆ operator!=()

static bool operator!= ( PhysicalValuePair  value1,
PhysicalValuePair  value2 
)
static

Compares two PhysicalValuePair for inequality.

Parameters
value1First PhysicalValuePair object to compare.
value2Second PhysicalValuePair object to compare.
Returns
Returns true if the two objects are unequal.

◆ operator==()

static bool operator== ( PhysicalValuePair  pair1,
PhysicalValuePair  pair2 
)
static

Compares two PhysicalValuePair for equality.

Parameters
pair1First PhysicalValuePair object to compare.
pair2Second PhysicalValuePair object to compare.
Returns
Returns true if the two objects are equal.

◆ ToString()

override string ToString ( )

Overridden ToString function.

Returns
The formatted value.