KRASCHE
&
BYRNE
         ELZED  HOME       NEWS       DOCS       DOWNLOADS       LICENSING       SUPPORT       FAQ       ABOUT  US

What's An Elzed?
Features
Licensing
Downloads
Documentation
Elzed News
    ELZED 
 Documentation 
 The Details 
 API 

lzSetAngleUnit

The lzSetAngleUnit function determines which unit (degrees, radians, or grads) will be used to represent angles. Elzed expresses angles in degrees by default.

void lzSetAngleUnit(
   char cAngleUnitCode   // character code for the angle unit
);

Parameters

cAngleUnitCode
   The character code must be one of the following values:

Code
Constant
Meaning
'R'
kAngleRadians
Radians are used.
'D'
kAngleDegrees
Degrees are used.
'G'
kAngleGrads
Grads are used.

While passing the character itself will work, passing the constant is a better idea long term.

Return Value

   None.

Remarks

   This function may be called at any time. It affects only the current context. The designated angle unit remains in effect until changed with another call to this function.

Note that this function affects both input and output. Input angles are expected to be in the designated units. Similarly, angular results will be expressed in the same units.

The current angle unit can be set from within Elzed by using the radians, degrees, and grads operators.

Versions

   Introduced in Elzed 1.0.0
   This page describes the version of lzSetAngleUnit active in Elzed 2.5.0 (89: 2.5.0)


  Copyright  ©  MMXXV  by  R R Le Cropane   •   All Rights Reserved   •   Terms of Use   •   Privacy Policy