Learn R Programming

fmesher (version 0.3.0)

fm_detect_manifold: Detect manifold type

Description

Detect if a 2d object is on "R2", "S2", or "M2"

Usage

fm_detect_manifold(x)

fm_crs_detect_manifold(x)

# S3 method for crs fm_detect_manifold(x)

# S3 method for CRS fm_detect_manifold(x)

# S3 method for numeric fm_detect_manifold(x)

# S3 method for matrix fm_detect_manifold(x)

# S3 method for fm_mesh_2d fm_detect_manifold(x)

Value

A string containing the detected manifold classification

Arguments

x

Object to investigate

Functions

  • fm_crs_detect_manifold(): Detect if a crs is on "R2" or "S2" (if fm_crs_is_geocent(crs) is TRUE). Returns NA_character_ if the crs is NULL or NA.

Examples

Run this code
fm_detect_manifold(1:4)
fm_detect_manifold(rbind(c(1, 0, 0), c(0, 1, 0), c(1, 1, 0)))
fm_detect_manifold(rbind(c(1, 0, 0), c(0, 1, 0), c(0, 0, 1)))

Run the code above in your browser using DataLab