Tessero\Spatial\Delaunay
AI assistant
Build this with Claude Code, Cursor or Copilot
Copy a Tessero-tuned prompt for Tessero\Spatial\Delaunay, grounded in 3 real API signatures , into your IDE's AI. No chatbot, just exact context.
__construct
__construct(array $points)
barycentric
barycentric(int $simplex, array $x): array
Barycentric coordinates of a point with respect to a given simplex (length ndim+1, summing to 1). Works for any dimension via the stored transform block.
findSimplex
findSimplex(array $queryPoints, float $tol = 1.0E-12): array
For each query point, the index of the containing simplex (into ->simplices), or -1 when the point is outside the convex hull. Brute-force barycentric sign scan over the generalized (ndim+1) barycentric coordinates; a point is inside simplex s iff all coordinates are >= -tol.
tsearch
static
tsearch(Tessero\Spatial\Delaunay|array $tri, array $xi): array
scipy.spatial.tsearch(tri, xi): the simplex containing each query point, or -1 outside the hull. Identical to (new Delaunay($tri->points))->findSimplex($xi).