Method ToReadableRadians
- Namespace
- GeometryHelper
- Assembly
- GeometryHelper.dll
ToReadableRadians(double)
Turns the angle of a text, in radians, the way up it reads: into the range above -PI/2 and up to PI/2, both raised by a tenth of a radian, the tolerance Tekla Structures takes, by adding or taking off a half turn.
public static double ToReadableRadians(double radians)
Parameters
radiansdoubleThe angle of the text, in radians, any number of turns either way.
Returns
- double
The angle the text reads at: PI gives 0, 1.75 gives 1.75 - PI, and 1.6 stays 1.6.
Remarks
The radian form of ToReadableDegrees(double), worked out in radians throughout.
Exceptions
- ArgumentOutOfRangeException
radiansis NaN or infinite.
ToReadableRadians(double, Angle)
Turns the angle of a text, in radians, the way up it reads: into the range above -PI/2 and up to PI/2, both raised by a tolerance, by adding or taking off a half turn.
public static double ToReadableRadians(double radians, Angle tolerance)
Parameters
radiansdoubleThe angle of the text, in radians, any number of turns either way.
toleranceAngleHow far past upright a text may lean and still read as it is: at least nought and less than a right angle.
Returns
- double
The angle the text reads at, above -PI/2 plus the tolerance and no more than PI/2 plus it.
Remarks
The radian form of ToReadableDegrees(double, Angle): the angle is first wrapped into a single turn, (-PI, PI], then turned a half turn when it lies more than a right angle past upright plus the tolerance. It is worked out in radians throughout, so a radian angle is not rounded through degrees on the way.
Exceptions
- ArgumentOutOfRangeException
radiansis NaN or infinite, or the tolerance is negative, a right angle or more, or not a number.