OpenMetaverse.Helpers.StateToAttachmentPoint C# (CSharp) Method

StateToAttachmentPoint() public static method

public static StateToAttachmentPoint ( uint state ) : AttachmentPoint
state uint
return AttachmentPoint
        public static AttachmentPoint StateToAttachmentPoint(uint state)
        {
            const uint ATTACHMENT_MASK = 0xF0;
            uint fixedState = (((byte)state & ATTACHMENT_MASK) >> 4) | (((byte)state & ~ATTACHMENT_MASK) << 4);
            return (AttachmentPoint)fixedState;
        }