Programming Reference for VirtualLab Fusion
2025.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class contains parameters for proper sampling of a complex field.
More...
Public Member Functions | |
override object | Clone () |
override bool | Equals (object otherObject, EqualityIntent equalityIntent) |
override int | GetHashCode () |
Returns a hash code for this instance. | |
SamplingParameters () | |
Default Constructor. Create a SamplingParameters with the default number of sampling points and the default sampling distance. | |
SamplingParameters (SamplingParameters samplingParameters) | |
Copy Constructor. | |
SamplingParameters (Vector SamplingPoints, VectorD SamplingDistance) | |
Creates SamplingParameters using given sampling points and distance. | |
override string | ToString () |
Converts a SamplingParameters object into a string. | |
string | ToString (PhysicalProperty physicalProperty) |
Converts a SamplingParameters object into a string using information about the physical property of sampling distance and diameter. | |
Static Public Member Functions | |
static bool | operator!= (SamplingParameters a, SamplingParameters b) |
Compares two SamplingParameters objects for inequality. | |
static bool | operator== (SamplingParameters a, SamplingParameters b) |
Compares two SamplingParameters objects for equality. | |
Properties | |
VectorD | Diameter [get] |
Calculates the diameter of the sampled area described by the sampling parameters. This is SamplingPoints * SamplingDistance. | |
FieldDimensions | Dimensionality [get] |
Gets the dimensionality (one- or two-dimensional) of the sampling parameters. | |
long | NumberOfSamplingPoints [get] |
Gets the number of sampling points. | |
VectorD | SamplingDistance [get, set] |
Sampling distance for x- and y-axis. | |
double | SamplingDistanceX [get, set] |
Sampling distance for x-axis. If the sampling distance less or equal zero, then the sampling distance is set to Double.Epsilon. | |
double | SamplingDistanceY [get, set] |
Sampling distance for y-axis. If the sampling distance less or equal zero, then the sampling distance is set to Double.Epsilon. | |
Vector | SamplingPoints [get, set] |
Number of sampling points in x- and y-axis. | |
int | SamplingPointsX [get, set] |
Number of sampling points in x-axis. If the number of sampling points is below 1, then 1 sampling point is assumed. | |
int | SamplingPointsY [get, set] |
Number of sampling points in y-axis. If the number of sampling points is below 1, then 1 sampling point is assumed. | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class contains parameters for proper sampling of a complex field.
SamplingParameters | ( | Vector | SamplingPoints, |
VectorD | SamplingDistance | ||
) |
Creates SamplingParameters using given sampling points and distance.
SamplingPoints | Number of sampling points. |
SamplingDistance | Sampling distance. |
SamplingParameters | ( | SamplingParameters | samplingParameters | ) |
Copy Constructor.
samplingParameters | SamplingParameters to copy |
override int GetHashCode | ( | ) |
Returns a hash code for this instance.
|
static |
Compares two SamplingParameters objects for inequality.
a | first vector |
b | second vector |
|
static |
Compares two SamplingParameters objects for equality.
a | first sampling parameters |
b | second sampling parameters |
override string ToString | ( | ) |
Converts a SamplingParameters object into a string.
string ToString | ( | PhysicalProperty | physicalProperty | ) |
Converts a SamplingParameters object into a string using information about the physical property of sampling distance and diameter.
physicalProperty | Physical property of sampling distance and diameter. |
|
get |
Gets the dimensionality (one- or two-dimensional) of the sampling parameters.
|
get |
Gets the number of sampling points.