Table of Contents

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

counted double

The angle as typed, in radians.

angbase double

ANGBASE: the direction of angle nought, in radians counter-clockwise from east.

clockwise bool

ANGDIR: whether angles grow clockwise.

Returns

double

The direction, in radians counter-clockwise from east.