Class AngleUnitFormat
Utility methods to format a decimal angle in degrees to its different string representations.
Inheritance
Inherited Members
Namespace: netDxf.Units
Assembly: CADability.dll
Syntax
public static class AngleUnitFormat
Methods
| Improve this Doc View SourceToDecimal(Double, UnitStyleFormat)
Converts an angle value in degrees into its decimal string representation.
Declaration
public static string ToDecimal(double angle, UnitStyleFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle value in degrees. |
| UnitStyleFormat | format | The unit style format. |
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the angle in decimal units. |
ToDegreesMinutesSeconds(Double, UnitStyleFormat)
Converts an angle value in degrees into its degrees, minutes and seconds string representation.
Declaration
public static string ToDegreesMinutesSeconds(double angle, UnitStyleFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle value in degrees. |
| UnitStyleFormat | format | The unit style format. |
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the angle in degrees, minutes and seconds. |
ToGradians(Double, UnitStyleFormat)
Converts an angle value in degrees into its gradians string representation.
Declaration
public static string ToGradians(double angle, UnitStyleFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle value in degrees. |
| UnitStyleFormat | format | The unit style format. |
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the angle in gradians. |
ToRadians(Double, UnitStyleFormat)
Converts an angle value in degrees into its radians string representation.
Declaration
public static string ToRadians(double angle, UnitStyleFormat format)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | angle | The angle value in degrees. |
| UnitStyleFormat | format | The unit style format. |
Returns
| Type | Description |
|---|---|
| System.String | A string that represents the angle in radians. |