bsoc.util
Class DirectionConverter
java.lang.Object
|
+--bsoc.util.DirectionConverter
- public class DirectionConverter
- extends java.lang.Object
Converts a direction indicated by an int value into four values; A, B, C and
D. These values are sinus curves between 0 and maxVal. The sinus curves do
have a diffrent offset value.
A offset = 0 degree.
B offset = 90 degree.
C offset = 180 degree.
D offset = 270 degree.
By that the four values represent a direction with no preferences for any
direction.
|
Method Summary |
short |
getA(int in)
|
short |
getB(int in)
|
short |
getC(int in)
|
short |
getD(int in)
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DirectionConverter
public DirectionConverter(int maxVal)
getA
public short getA(int in)
getB
public short getB(int in)
getC
public short getC(int in)
getD
public short getD(int in)