-
- 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
AngleManager
converts 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 double
DEF_DEG_PER_PIXEL
-
Constructor Summary
Constructors Constructor Description AngleManagerImpl()
Initializes a new AngleManager
instance withdUnit = 1
anddPhase = 0
.AngleManagerImpl(double dUnit)
Initializes a new AngleManager
instance withdPhase = 0
.AngleManagerImpl(double dUnit, double dPhase)
Initializes a new AngleManager
with the initial phase and unit in input.
-
Method Summary
Modifier and Type Method Description double
getAngle()
-
-
Constructor Detail
-
AngleManagerImpl
AngleManagerImpl()
Initializes a newAngleManager
instance withdUnit = 1
anddPhase = 0
.
-
AngleManagerImpl
AngleManagerImpl(double dUnit)
Initializes a newAngleManager
instance withdPhase = 0
.- Parameters:
dUnit
- is the amount of degrees corresponding to 1 slide (i.e.
-
AngleManagerImpl
AngleManagerImpl(double dUnit, double dPhase)
Initializes a newAngleManager
with 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()
-
-
-
-