StaticcartesianConvert cartesian coordinates to ternary coordinates
X coordinate
Y coordinate
Ternary point
StaticternaryCalculate distance between points in ternary space
Reference ternary point
Array of ternary points to measure distance to
Array of distances
StaticternaryCalculate ternary limits (min/max for each component)
Array of ternary points
Object with lower and upper limits
StaticternaryCalculate centroids of subtriangles in a segmented equilateral triangle
Number of rows in the segmented equilateral triangle
Array of centroid information
StaticternaryCalculate vertices of sub-triangles in a segmented equilateral triangle
Centroids of sub-triangles
Array of vertex information
StaticternaryFind nearest coordinate in set C for each point in P
Array of ternary points
Array of reference ternary points
Array of nearest ternary points
StaticternaryCalculate vertices of sextant regions
Center point of the sextants
Array of sextant vertex information
StaticternaryDetermine which sextant a point belongs to
Array of ternary points
Center point of the sextants
Array of sextant ids (1-6) or null
StaticternaryConvert ternary coordinates to cartesian coordinates for plotting
Ternary point
Cartesian coordinates [x, y]
Ternary geometry functions