kOS.Suffixed.VesselTarget.RawAngularVelFromRelative C# (CSharp) Method

RawAngularVelFromRelative() private method

Annoyingly, KSP returns vessel.angularVelociy in a frame of reference relative to the ship facing instead of the universe facing. This would be wonderful if that was their philosophy everywhere, but it's not - its just a weird exception for this one case. This transforms it back into raw universe axes again:
private RawAngularVelFromRelative ( Vector3 angularVelFromKSP ) : Vector
angularVelFromKSP Vector3 the value KSP is returning for angular velocity
return Vector
        private Vector RawAngularVelFromRelative(Vector3 angularVelFromKSP)
        {
            return new Vector(VesselUtils.GetFacing(Vessel).Rotation *
                              new Vector3d(angularVelFromKSP.x, -angularVelFromKSP.z, angularVelFromKSP.y));
        }