Show / Hide Table of Contents

Class AngleUnitFormat

Utility methods to format a decimal angle in degrees to its different string representations.

Inheritance
System.Object
AngleUnitFormat
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: netDxf.Units
Assembly: CADability.dll
Syntax
public static class AngleUnitFormat

Methods

| Improve this Doc View Source

ToDecimal(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX