Learn R Programming

SpatialfdaR (version 1.0.0)

tricoefCal: Compute the coefficient matrix required to test of a point is inside a triangle.

Description

Compute the coefficient matrix tricoef required to test if a point is inside a triangle.

Usage

tricoefCal(pts, tri)

Value

A matrix tricoef.

Arguments

pts

A two-column matrix of the locations of the vertices of the mesh.

tri

A three-column matrix of the indices in pts of the triangle vertices.

See Also

insideIndex