Commit d1766a06 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[python][precision] make base eps static properties

parent d9553497
......@@ -28,8 +28,8 @@ template<class ctype>
void registerPrecision(pybind11::module& module)
{
pybind11::class_<Precision<ctype>> cls(module, "Precision");
cls.def_static("confusion", &Precision<ctype>::confusion, "tolerance value for distance comparisons");
cls.def_static("angular", &Precision<ctype>::angular, "tolerance value for angle comparisons");
cls.def_property_readonly_static("confusion", [] (pybind11::object /*self*/) { return Precision<ctype>::confusion(); }, "tolerance value for distance comparisons");
cls.def_property_readonly_static("angular", [] (pybind11::object /*self*/) { return Precision<ctype>::angular(); }, "tolerance value for angle comparisons");
}
} // end namespace Frackit::Python
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment