# barycentricCoordinates

Core/barycentricCoordinates.js 31
Computes the barycentric coordinates for a point with respect to a triangle.

##### Example:

    // Returns Cartesian3.UNIT_X
    var p = new Cesium.Cartesian3(-1.0, 0.0, 0.0);
    var b = Cesium.barycentricCoordinates(p,
      new Cesium.Cartesian3(-1.0, 0.0, 0.0),
      new Cesium.Cartesian3( 1.0, 0.0, 0.0),
      new Cesium.Cartesian3( 0.0, 1.0, 1.0));