R/RcppExports.R

Defines functions polygonArea rowMatch triTopology

Documented in polygonArea rowMatch triTopology

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' Calculate the Polygon Area;
#' @param X required
#' @param Y required
#' @return Area
#' @export
polygonArea <- function(X, Y) {
    .Call('_PIHMgisR_polygonArea', PACKAGE = 'PIHMgisR', X, Y)
}

#' Identify whether every row of x is same as m;
#' @param x Row vector
#' @param m Matrix
#' @return TRUE/FALSE of matching
#' @useDynLib PIHMgisR
#' @export
rowMatch <- function(x, m) {
    .Call('_PIHMgisR_rowMatch', PACKAGE = 'PIHMgisR', x, m)
}

#' Determine the topological relation among triangles. 
#' @param tri triangle defination, m x 3
#' @return topological relation of triangles. m x 4; cols = c(ID, Nabor1, Nabor2, Nabor3)
#' @export
triTopology <- function(tri) {
    .Call('_PIHMgisR_triTopology', PACKAGE = 'PIHMgisR', tri)
}
happynotes/PIHMgisR documentation built on Jan. 25, 2020, 9:51 p.m.