Learn R Programming

tricolore (version 1.2.6)

TernarySextantVertices: Vertex Coordinates of Sextants in Equilateral Triangle

Description

Given a barycentric center coordinate return the vertex coordinates of the of the sextant regions.

Usage

TernarySextantVertices(center)

Value

Index, vertex id and barycentric vertex coordinates for each of the 6 sextants.

Arguments

center

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

Examples

Run this code
# NOTE: only intended for internal use and not part of the API
tricolore:::TernarySextantVertices(rep(1/3, 3))

Run the code above in your browser using DataLab