| 104 | double Length() const { return std::sqrt(SquaredLength()); } |
| 105 | |
| 106 | Point<T> Normalize() const |
| 107 | { |
| 108 | if (IsAlmostZero()) |
| 109 | return Zero(); |
| 110 | |
| 111 | double const length = this->Length(); |
| 112 | return Point<T>(x / length, y / length); |
| 113 | } |
| 114 | |
| 115 | std::pair<Point<T>, Point<T>> Normals(T prolongationFactor = 1) const |
| 116 | { |
no test coverage detected