fm_is_within: Query if points are inside a mesh

View source: R/basis.R

fm_is_withinR Documentation

Query if points are inside a mesh

Description

Queries whether each input point is within a mesh or not.

Usage

fm_is_within(x, y, ...)

Arguments

x

A set of points/locations of a class supported by fm_basis(y, loc = x, ..., full = TRUE)

y

An fm_mesh_2d or other class supported by fm_basis(y, loc = x, ..., full = TRUE)

...

Passed on to fm_basis()

Value

A logical vector

Examples

all(fm_is_within(fmexample$loc, fmexample$mesh))

fmesher documentation built on April 3, 2025, 7:45 p.m.