Class PrecisionOverride
Use this class to temporary override the values for the precision. The best way to use this class is the C# using statement. The constructor of this class overrides the values for the global Precision. The Dispose() method restores the previous values.
Inheritance
System.Object
PrecisionOverride
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability
Assembly: CADability.dll
Syntax
public class PrecisionOverride : IDisposable
Constructors
| Improve this Doc View SourcePrecisionOverride(Double)
Sets the global Precision.eps value.
Declaration
public PrecisionOverride(double eps)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | eps | The new Precision.eps value |
PrecisionOverride(Double, Double)
Sets the global Precision.eps and epsa value.
Declaration
public PrecisionOverride(double eps, double epsa)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | eps | The new Precision.eps value |
| System.Double | epsa | The new Precision.epsa value |
Methods
| Improve this Doc View SourceDispose()
Restores the previous (at time of construction of this object) Precision values.
Declaration
public void Dispose()
Implements
System.IDisposable