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?
[solved] How does the Point.isEqual second parameter works?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 101
- Joined: Sun Jul 24, 2022 12:49 pm
[solved] 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.
-
- Veteran
- Posts: 3182
- Joined: Thu Sep 24, 2020 10:31 pm
- Location: Hawaii
- Contact:
Re: How does the Point.isEqual second parameter works?
From https://github.com/FreeCAD/FreeCAD/blob ... D.cpp#L216
v1.isEqual(v2, tol) is True if (v1-v2).Length <= tol
Code: Select all
template <class _Precision>
bool Vector3<_Precision>::IsEqual(const Vector3<_Precision> &rclPnt, _Precision tol) const
{
return Distance(*this, rclPnt) <= tol;
}