Back to class index
| LineSegment::LengthSyntaxfloat LineSegment::Length() const; [4 lines of code]Computes the length of this line segment. Return Value|b-a|. See AlsoSyntaxfloat LineSegment::LengthSq() const; [4 lines of code]Computes the squared length of this line segment. Calling this function is faster than calling Length(), since this function avoids computing a square root. If you only need to compare lengths to each other and are not interested in the actual length values, you can compare by using LengthSq(), instead of Length(), since Sqrt() is an order-preserving (monotonous and non-decreasing) function. |