Exemple #1
0
			bool equivalent (const Line<D, NumericT> & other) {
				// Are we pointing in the same direction
				if (!_direction.equivalent(other._direction))
					return false;

				// Is the distance between the parallel lines equivalent to zero?
				return Numerics::equivalent(shortest_distance_to_point(other._point), 0);
			}
Exemple #2
0
			/// Is this segment zero-length?
			bool is_degenerate () {
				return _start.equivalent(_end);
			}