-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.wormhole.interfaces.AngleManager,it.unibo.alchemist.boundary.wormhole.interfaces.SlideInputManager
public final class AngleManagerImpl extends AbstractSlideInputManager implements AngleManager
An
AngleManagerconverts the sliding of any physical/virtual device/control into an angle expressed with radians.
-
-
Field Summary
Fields Modifier and Type Field Description public final static doubleDEF_DEG_PER_PIXEL
-
Constructor Summary
Constructors Constructor Description AngleManagerImpl()Initializes a new AngleManagerinstance withdUnit = 1anddPhase = 0.AngleManagerImpl(double dUnit)Initializes a new AngleManagerinstance withdPhase = 0.AngleManagerImpl(double dUnit, double dPhase)Initializes a new AngleManagerwith the initial phase and unit in input.
-
Method Summary
Modifier and Type Method Description doublegetAngle()-
-
Constructor Detail
-
AngleManagerImpl
AngleManagerImpl()
Initializes a newAngleManagerinstance withdUnit = 1anddPhase = 0.
-
AngleManagerImpl
AngleManagerImpl(double dUnit)
Initializes a newAngleManagerinstance withdPhase = 0.- Parameters:
dUnit- is the amount of degrees corresponding to 1 slide (i.e.
-
AngleManagerImpl
AngleManagerImpl(double dUnit, double dPhase)
Initializes a newAngleManagerwith the initial phase and unit in input.- Parameters:
dUnit- is the amount of degrees corresponding to 1 slide (i.e.dPhase- is the initial rotation expressed with degrees
-
-
Method Detail
-
getAngle
double getAngle()
-
-
-
-