TernarySurroundingSextant: Return Surrounding Sextant of Barycentric Coordinates

TernarySurroundingSextantR Documentation

Return Surrounding Sextant of Barycentric Coordinates

Description

Given barycentric coordinates return the id of the surrounding sextant.

Usage

TernarySurroundingSextant(P, center)

Arguments

P

n by 3 matrix of ternary coordinates [p1, p2, p3](i) for i=1,...,n.

center

The sextant center. A vector of ternary coordinates [p1, p2, p3].

Value

An n element character vector of sextant id's 1 to 6.

Examples

P <- prop.table(matrix(runif(9), ncol = 3), 1)
tricolore:::TernarySurroundingSextant(P, rep(1/3, 3))


jschoeley/tricolore documentation built on Feb. 3, 2024, 4:33 a.m.