Share

AcGeEntity2d::isEqualTo

C++

GE_DLLEXPIMPORT Adesk::Boolean isEqualTo(
    const AcGeEntity2d& entity, 
    const AcGeTol& tol = AcGeContext::gTol
) const;

Description

Determines if two entities are equal to each other.

Two entities are considered to be equal only if they are of the same type and they represent the same 2D point set. For instance, if the two entities are of types AcGeCircArc2d and AcGeEllipArc2d, then they are not considered equal even if the ellipse is completely coincident with the circle.

In addition, two curves are not considered equal unless they have the same parameterization. For instance, two infinite coincident lines are not considered equal if they have different scaling in their parameterization.

Parameters

Parameters Description
entity Input any AcGeEntity2d object
tol Input tolerance to be used when determining equality

Links

AcGeEntity2d

Was this information helpful?