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 

lzSetCoordinateFormat

The lzSetCoordinateFormat function determines which format (rectangular or polar) will be used to represent coordinate pair results. Elzed uses rectangular coordinates by default.

void lzSetCoordinateFormat(
   char cCoordinateFormatCode   // character code for the coordinate format
);

Parameters

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

Code Constant Effect
'R'
kCoordRect Rectangular coordinates in use.
'P'
kCoordPolar Polar coordinates in use.

While passing the code 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 coordinate format remains in effect until changed with another call to this function.

Note that this function affects only output. Input coordinates may be in either format.

The current coordinate format can be set from within Elzed by using the rect and polar operators.

If polar coordinates are in use, the angle ordinate is expressed in the current angle unit.

Versions

   Introduced in Elzed 1.0.0
   This page describes the version of lzSetCoordinateFormat active in Elzed 2.5.0 (96: 2.5.0)

See Also

   Angles, Coordinates, Complex Numbers


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