From 25afb043ce31ed4b84fa45db298822ed9f522acd Mon Sep 17 00:00:00 2001 From: hyrodium Date: Sat, 13 Apr 2024 16:43:38 +0900 Subject: [PATCH] remove methods defined in Base --- src/point.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/point.jl b/src/point.jl index ff1dd277..edadc850 100644 --- a/src/point.jl +++ b/src/point.jl @@ -150,13 +150,9 @@ function Base.isapprox(p1::Point, p2::Point; end isless(p1::Point, p2::Point) = (p1.x < p2.x || (isapprox(p1.x, p2.x) && p1.y < p2.y)) -!=(p1::Point, p2::Point) = !isequal(p1, p2) <(p1::Point, p2::Point) = isless(p1, p2) ->(p1::Point, p2::Point) = p2 < p1 ==(p1::Point, p2::Point) = isequal(p1, p2) -cmp(p1::Point, p2::Point) = (p1 < p2) ? -1 : (p2 < p1) ? 1 : 0 - # a unique that works better on points? # I think this uses == # TODO perhaps unique(x -> round(x, sigdigits=13), myarray) ?