• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Paramdigma.Core
    • Convert
    • Intersect3D
    • Intersect3D.LineLineIntersectionResult
    • Intersect3D.LineLineIntersectionStatus
    • Intersect3D.LinePlaneIntersectionStatus
    • Intersect3D.RayFacePerimeterIntersectionStatus
    • Settings
  • Paramdigma.Core.Collections
    • Interval
    • Matrix<T>
  • Paramdigma.Core.Curves
    • Geodesics
    • LevelSets
  • Paramdigma.Core.Exceptions
    • UnsetGeometryException
  • Paramdigma.Core.Extensions
    • Lists
  • Paramdigma.Core.Geometry
    • BaseCurve
    • BasePoint
    • Box
    • Circle
    • Cylinder
    • Delaunay
    • InvalidCurveException
    • Line
    • Line2d
    • Mesh
    • MeshCorner
    • MeshEdge
    • MeshFace
    • MeshGeometry
    • MeshHalfEdge
    • MeshPoint
    • MeshTopology
    • MeshVertex
    • NurbsCurve
    • NurbsSurface
    • Plane
    • Point2d
    • Point3d
    • Point4d
    • Polyline
    • Polyline2d
    • Ray
    • Ray2d
    • Rectangle2d
    • Sphere
    • Torus
    • Vector2d
    • Vector3d
    • VectorNd
  • Paramdigma.Core.Geometry.Interfaces
    • ICurve
    • ISurface
    • IVector
  • Paramdigma.Core.IO
    • CsvReader
    • CsvWritter
    • OBJMeshData
    • ObjReader
    • ObjWritter
    • OffMeshData
    • OffReader
    • OffResult
    • OffWriter
  • Paramdigma.Core.LinearAlgebra
    • Complex
    • LeastSquaresLinearFit
    • Triplet
    • TripletData
  • Paramdigma.Core.Optimization
    • GradientDescent
    • GradientDescent.FitnessFunction
    • GradientDescentOptions
    • GradientDescentResult
    • KMeansCluster
    • KMeansClustering
    • KMeansClustering.IterationCompletedEventArgs
  • Paramdigma.Core.Spatial
    • DelaunayEdge
    • DelaunayPoint
    • DelaunayTriangle
    • Octree
    • PointCloud
    • PointCloudMember
    • QuadTree

Class QuadTree

Class to compute 2 dimensional spatial searches by quad subdivision.

Inheritance
System.Object
QuadTree
Namespace: Paramdigma.Core.Spatial
Assembly: Paramdigma.Core.dll
Syntax
public class QuadTree : object

Constructors

| Improve this Doc View Source

QuadTree(Rectangle2d, Double)

Initializes a new instance of the QuadTree class.

Declaration
public QuadTree(Rectangle2d boundary, double threshold)
Parameters
Type Name Description
Rectangle2d boundary

Boundary of this QuadTree.

System.Double threshold

Smallest allowed dimension.

Fields

| Improve this Doc View Source

Boundary

Boundary of this QuadTree.

Declaration
public readonly Rectangle2d Boundary
Field Value
Type Description
Rectangle2d
| Improve this Doc View Source

Points

Gets or sets the list of points of this QuadTree.

Declaration
public readonly List<Point2d> Points
Field Value
Type Description
List<Point2d>

Methods

| Improve this Doc View Source

Insert(Point2d)

Insert a point in the QuadTree.

Declaration
public bool Insert(Point2d point)
Parameters
Type Name Description
Point2d point

Point to insert.

Returns
Type Description
System.Boolean

True if point was inserted.

| Improve this Doc View Source

QueryRange(Rectangle2d)

Query the QuadTree for all points contained in this range.

Declaration
public List<Point2d> QueryRange(Rectangle2d range)
Parameters
Type Name Description
Rectangle2d range

Range to look for.

Returns
Type Description
List<Point2d>

Points contained in the range.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX