public void SetRotation(ref MatrixD rotationMat) {
            if (!rotationMat.IsRotation())
                return;

            m_transform.M11 = rotationMat.M11;
            m_transform.M12 = rotationMat.M12;
            m_transform.M13 = rotationMat.M13;

            m_transform.M21 = rotationMat.M21;
            m_transform.M22 = rotationMat.M22;
            m_transform.M23 = rotationMat.M23;

            m_transform.M31 = rotationMat.M31;
            m_transform.M32 = rotationMat.M32;
            m_transform.M33 = rotationMat.M33;

            m_shape.Transformation = m_transform;
        }