//Copyright (c) 2022 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.

#include "utils/ProximityPointLink.h"

namespace cura52 
{

ProximityPointLink::ProximityPointLink(const ListPolyIt a, const ListPolyIt b, int dist, const ProximityPointLinkType type)
: a(a)
, b(b)
, dist(dist)
, type(type)
{
}

bool ProximityPointLink::operator==(const ProximityPointLink& other) const
{
    return (a == other.a && b == other.b) || (a == other.b && b == other.a);
}

void ProximityPointLink::setDist(coord_t distance) const
{
    ProximityPointLink& thiss = *const_cast<ProximityPointLink*>(this);
    thiss.dist = distance;
}

}//namespace cura52 
