Photomechanics API
Photomechanics.Photo3DStudio.TurntableControl.Extensions.StepsDegreesConversions Class Reference

Extensions for IRotationProvider to simplify conversion between steps and degrees. More...

Static Public Member Functions

static async Task< Double > GetDegrees (this IRotationProvider api, Int32 steps)
 Convert steps to degrees. More...
 
static async Task< Int32 > GetSteps (this IRotationProvider api, Double degrees)
 Convert degrees to steps. More...
 

Detailed Description

Extensions for IRotationProvider to simplify conversion between steps and degrees.

Member Function Documentation

◆ GetDegrees()

static async Task<Double> Photomechanics.Photo3DStudio.TurntableControl.Extensions.StepsDegreesConversions.GetDegrees ( this IRotationProvider  api,
Int32  steps 
)
static

Convert steps to degrees.

◆ GetSteps()

static async Task<Int32> Photomechanics.Photo3DStudio.TurntableControl.Extensions.StepsDegreesConversions.GetSteps ( this IRotationProvider  api,
Double  degrees 
)
static

Convert degrees to steps.