MCPcopy Create free account
hub / github.com/Kitware/VTK / LengthLessThanTolerance

Method LengthLessThanTolerance

IO/Export/vtkSVGContextDevice2D.cxx:2305–2308  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

2303
2304//------------------------------------------------------------------------------
2305bool vtkSVGContextDevice2D::LengthLessThanTolerance(const vtkVector2f& p1, const vtkVector2f& p2)
2306{
2307 return (p2 - p1).SquaredNorm() < this->SubdivisionThreshold;
2308}
2309
2310//------------------------------------------------------------------------------
2311bool vtkSVGContextDevice2D::ColorsAreClose(

Callers 2

DrawLineGradientMethod · 0.95
AreaLessThanToleranceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected