Skip to contents

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

Usage

fm_is_within(x, y, ...)

# Default S3 method
fm_is_within(x, y, ...)

Arguments

x

A set of points of a class supported by fm_evaluator(y, loc = x)

y

An fm_mesh_2d or other class supported by fm_evaluator(y, loc = x)

...

Currently unused

Value

A logical vector

Examples

all(fm_is_within(fmexample$loc, fmexample$mesh))
#> [1] TRUE