Table of Contents

Class GeometryUtilities

Namespace
SixLabors.ImageSharp
Assembly
SixLabors.ImageSharp.dll

Utility class for common geometric functions.

public static class GeometryUtilities
Inheritance
GeometryUtilities
Inherited Members

Methods

DegreeToRadian(float)

Converts a degree (360-periodic) angle to a radian (2*Pi-periodic) angle.

public static float DegreeToRadian(float degree)

Parameters

degree float

The angle in degrees.

Returns

float

The float representing the degree as radians.

RadianToDegree(float)

Converts a radian (2*Pi-periodic) angle to a degree (360-periodic) angle.

public static float RadianToDegree(float radian)

Parameters

radian float

The angle in radians.

Returns

float

The float representing the degree as radians.