[solved] How does the Point.isEqual second parameter works?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
stefankorisnik3
Posts: 101
Joined: Sun Jul 24, 2022 12:49 pm

[solved] How does the Point.isEqual second parameter works?

Post by stefankorisnik3 »

I didn't succeed to find the docs about App.Vector.isEqual method.
I have only on the FreeCAD python console when typing pop that say isEqual(vec2, tol = 0).
How does the Point.isEqual second parameter works?
Last edited by stefankorisnik3 on Sun Aug 07, 2022 10:33 pm, edited 1 time in total.
edwilliams16
Veteran
Posts: 3106
Joined: Thu Sep 24, 2020 10:31 pm
Location: Hawaii
Contact:

Re: How does the Point.isEqual second parameter works?

Post by edwilliams16 »

From https://github.com/FreeCAD/FreeCAD/blob ... D.cpp#L216

Code: Select all

template <class _Precision>
bool Vector3<_Precision>::IsEqual(const Vector3<_Precision> &rclPnt, _Precision tol) const
{
    return Distance(*this, rclPnt) <= tol;
}
v1.isEqual(v2, tol) is True if (v1-v2).Length <= tol
Post Reply