Exemplo n.º 1
0
 internal TrigonometricPart(ITrigonometryContext context, double value,
     Func<double, IDimension[], IQuantity> factory, params IDimension[] dimensions)
 {
     Assert.That(_context = context, Is.Not.Null);
     // Some use cases involve NaN.
     _value = value;
     Assert.That(_dimensions = dimensions, Is.Not.Null);
     Assert.That(_factory = factory, Is.Not.Null);
 }
Exemplo n.º 2
0
 internal TrigonometricPart(ITrigonometryContext context, double value,
                            Func <double, IDimension[], IQuantity> factory, params IDimension[] dimensions)
 {
     Assert.That(_context = context, Is.Not.Null);
     // Some use cases involve NaN.
     _value = value;
     Assert.That(_dimensions = dimensions, Is.Not.Null);
     Assert.That(_factory    = factory, Is.Not.Null);
 }