Class GeometryUtilities
Utility class for common geometric functions.
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class GeometryUtilities
Methods
| Improve this Doc View SourceDegreeToRadian(Single)
Converts a degree (360-periodic) angle to a radian (2*Pi-periodic) angle.
Declaration
public static float DegreeToRadian(float degree)
Parameters
Type | Name | Description |
---|---|---|
Single | degree | The angle in degrees. |
Returns
Type | Description |
---|---|
Single | The Single representing the degree as radians. |
RadianToDegree(Single)
Converts a radian (2*Pi-periodic) angle to a degree (360-periodic) angle.
Declaration
public static float RadianToDegree(float radian)
Parameters
Type | Name | Description |
---|---|---|
Single | radian | The angle in radians. |
Returns
Type | Description |
---|---|
Single | The Single representing the degree as radians. |