You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
using BitSet;
|
|
|
|
namespace TF2Net.NetMessages
|
|
{
|
|
static class BitAngle
|
|
{
|
|
public static double Read(BitStream stream, byte bitCount)
|
|
{
|
|
double shift = (1 << bitCount);
|
|
|
|
var rawValue = stream.ReadULong(bitCount);
|
|
return rawValue * (360 / shift);
|
|
}
|
|
}
|
|
}
|