barycentric: Compute Barycentric Coordinates

Description Usage Arguments Value

View source: R/render.R

Description

Compute Barycentric Coordinates

Usage

1

Arguments

p

a list containing equal length numeric vectors containing the coordinates of the points that we want to compute barycentric coordinates for.

v

numeric list-matrix where each row corresponds to a triangle vertex data and each column the x and y coordinates for each vertex. Each element of the underlying vectors is matched position wise to the corresponding point in p, so all vectors in p and v are expected to be the same length.

Value

a list with there numeric vectors containing the barycentric coordinates.


brodieG/shadow documentation built on Aug. 12, 2019, 1:50 p.m.