Method ToDirection
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ToDirection(double, double, bool)
Turns an angle typed, counted as the drawing counts angles, into the direction it names: from the base direction ANGBASE, clockwise where ANGDIR is 1. With ANGBASE at north and ANGDIR clockwise, as a surveyor counts, 30 is the direction 60 degrees counter-clockwise from east.
public static double ToDirection(double counted, double angbase, bool clockwise)
Parameters
counteddoubleThe angle as typed, in radians.
angbasedoubleANGBASE: the direction of angle nought, in radians counter-clockwise from east.
clockwiseboolANGDIR: whether angles grow clockwise.
Returns
- double
The direction, in radians counter-clockwise from east.