    

 ## On this page

  

 

 # Class Convert

 Last update: 16.07.2025 

Namespace: [VM.Managed.Utility](VM.Managed.Utility.md)  
Assembly: VM.dll

This class is to represent the special convert.

```csharp
public static class Convert

```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ← [Convert](VM.Managed.Utility.Convert.md)

## Properties

### DToR

Gets the Degree to Radius.

```csharp
public static double DToR { get; }

```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### RToD

Gets the Radius to Degree.

```csharp
public static double RToD { get; }

```

#### Property Value

[double](https://learn.microsoft.com/dotnet/api/system.double)

### SignificantFigure

Gets the significant figure.

```csharp
public static int SignificantFigure { get; set; }

```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## Methods

### GetContrastColor(Color)

```csharp
public static Color GetContrastColor(Color baseColor)

```

#### Parameters

`baseColor` [Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

#### Returns

[Color](https://learn.microsoft.com/dotnet/api/system.drawing.color)

### ToString(double)

Returns a  that represents this instance.

```csharp
public static string ToString(double dVal)

```

#### Parameters

`dVal` [double](https://learn.microsoft.com/dotnet/api/system.double)

The val.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A  that represents this instance.

### ToString(Vector)

Returns a  that represents this instance.

```csharp
public static string ToString(Vector vec)

```

#### Parameters

`vec` [Vector](VM.Vector.md)

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A  that represents this instance.

### ToString(double, double)

Returns a  that represents this instance.

```csharp
public static string ToString(double dVal, double dConvertFactor)

```

#### Parameters

`dVal` [double](https://learn.microsoft.com/dotnet/api/system.double)

The val.

`dConvertFactor` [double](https://learn.microsoft.com/dotnet/api/system.double)

The convert factor.

#### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A  that represents this instance.