Skip to main content

equals

Function equals 

Source
pub fn equals<A, B>(a: &A, b: &B) -> bool
where A: Geometry, B: Geometry, A::Kind: EqualsPairStrategy<B::Kind>, <A::Kind as EqualsPairStrategy<B::Kind>>::S: EqualsStrategy<A, B>,
Expand description

true iff a and b describe the same point set.

Mirrors boost::geometry::equals(a, b) from boost/geometry/algorithms/equals.hpp. Polygon equality is up-to-rotation and traversal direction; vertex-order normalisation happens inside the strategy kernel.