/// <summary>
        /// Writes an orthonormal matrix (rotation, translation but no scaling or projection)
        /// </summary>
        public static void WriteMatrix(this NetBuffer message, Matrix matrix)
        {
            Quaternion rot = Quaternion.CreateFromRotationMatrix(matrix);

            message.WriteRotation(rot, 24);
            message.Write(matrix.M41);
            message.Write(matrix.M42);
            message.Write(matrix.M43);
        }