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