VTK  9.5.20251211
vtkStaticPointLocator2DPrivate.h File Reference
#include "vtkCellArray.h"
#include "vtkDataSet.h"
#include "vtkDoubleArray.h"
#include "vtkMath.h"
#include "vtkPointSet.h"
#include "vtkPoints.h"
#include "vtkPolyData.h"
#include "vtkSMPThreadLocal.h"
#include "vtkSMPThreadLocalObject.h"
#include "vtkSMPTools.h"
#include "vtkStaticPointLocator2D.h"
#include "vtkStructuredData.h"
Include dependency graph for vtkStaticPointLocator2DPrivate.h:

Go to the source code of this file.

Classes

class  vtkBucketList2D
 Private declarations for 2D binned spatial locator. More...
 
struct  BucketList2D< TIds >
 
struct  BucketList2D< TIds >::MapDataSet< T >
 
struct  BucketList2D< TIds >::MapPointsArray< T, TPts >
 
struct  BucketList2D< TIds >::MapOffsets< T >
 
struct  BucketList2D< TIds >::MergePrecise< T >
 
struct  BucketList2D< TIds >::MergeClose< T >
 

Macros

#define Distance2BetweenPoints2D(p1, p2)
 

Functions

bool IntersectsCircle (const double min[2], const double max[2], const double center[2], double r2)
 Performant method to intersect a box with a circle.
 
bool InsideCircle (const double min[2], const double max[2], const double center[2], double r2)
 Performant method to determine if a box if fully inside a circle.
 

Macro Definition Documentation

◆ Distance2BetweenPoints2D

#define Distance2BetweenPoints2D ( p1,
p2 )
Value:
((p1[0] - p2[0]) * (p1[0] - p2[0]) + (p1[1] - p2[1]) * (p1[1] - p2[1]))

Definition at line 31 of file vtkStaticPointLocator2DPrivate.h.

Function Documentation

◆ IntersectsCircle()

bool IntersectsCircle ( const double min[2],
const double max[2],
const double center[2],
double r2 )
inline

Performant method to intersect a box with a circle.

The box is defined by (min,max) corners; the circle by (center,radius**2). Inspired by Graphics Gems 1.

Definition at line 39 of file vtkStaticPointLocator2DPrivate.h.

◆ InsideCircle()

bool InsideCircle ( const double min[2],
const double max[2],
const double center[2],
double r2 )
inline

Performant method to determine if a box if fully inside a circle.

The box is defined by (min,max) corners; the circle by (center,radius**2). Inspired by Graphics Gems 1.

Definition at line 62 of file vtkStaticPointLocator2DPrivate.h.