Method Angle
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Angle(string, Func<double>, Action<double>)
Makes an angle the app keeps, as SNAPANG: asked "Enter new value for SNAPANG <30>:" in the drawing's angle units (AUNITS, AUPREC), typed in them or given by two points, and kept from nought up to a whole turn, as AutoCAD keeps 400 as 40 and -30 as 330; set at once, no step of undo.
public static CadSystemVariable Angle(string name, Func<double> get, Action<double> set)
Parameters
namestringThe name.
getFunc<double>Reads the value, in radians.
setAction<double>Sets a value taken, in radians from nought up to a whole turn.
Returns
- CadSystemVariable
The variable.
Exceptions
- ArgumentNullException
Thrown when either delegate is null.
- ArgumentException
Thrown when the name is empty or has a space.