1.QLineF QLineF::normalVector() const
Returns a line that is perpendicular to this line with the same starting point and length.
翻译:返回一条垂直于该线的线,该线具有相同的起点和长度。
//normalVector()返回的法向量是垂直于该线的起点的,长度和该线的长度相同;
2.QLineF QLineF::unitVector() const
Returns the unit vector for this line, i.e a line starting at the same point as this line with a length of 1.0.
翻译:返回这条线的单位向量,即从这条线的同一点开始的长度为1.0的线。