Method TryAngles
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
TryAngles(string, int, out double[])
Reads a list of angles as AutoCAD's POLARADDANG takes one: up to ten angles parted by semicolons, each read as TryAngle(string, int, out double) reads one and turned into a direction from nought up to a whole turn, in the order typed; empty for none. A part left empty or with a space about it, an eleventh angle, or a comma between two is refused: "-10;400;45d" reads as 350, 40 and 45 degrees, and "10;;20", "10,20" and "15 ; 25" do not read.
public static bool TryAngles(string text, int aunits, out double[] radians)
Parameters
textstringThe text typed; null or empty for none.
aunitsintAUNITS, which a number with no mark of its own is read in.
radiansdouble[]The angles, in radians counter-clockwise from east.
Returns
- bool
Whether it read.