![]() |
Measure-Based Functions: |
Extended __fastcall RadToCycle(Extended Radians);
The RadToCycle() function is used to convert the measurement of an angle from radians to cycles. This function is equivalent to using the formula
Cycle = Radian / 2Pi
Here is an example:
//---------------------------------------------------------------------------
void __fastcall TForm1::btnConversionClick(TObject *Sender)
{
Extended Rad = StrToFloat(edtRadian->Text);
Extended Cyc = RadToCycle(Rad);
edtCycle->Text = FloatToStr(Cyc);
}
//---------------------------------------------------------------------------

| Home | Copyright © 2004-2016, FunctionX, Inc. | |