interpolationFactorsTriangle

Compute the interpolation factors <code>(t0, t1, t2)</code> in order to interpolate an arbitrary value over a given triangle at the given point <code>(x, y)</code>. <p> This method takes in the 2D vertex positions of the three vertices of a triangle and stores in <code>dest</code> the factors <code>(t0, t1, t2)</code> in the equation <code>v' = v0 * t0 + v1 * t1 + v2 * t2</code> where <code>(v0, v1, v2)</code> are arbitrary (scalar or vector) values associated with the respective vertices of the triangle. The computed value <code>v'</code> is the interpolated value at the given position <code>(x, y)</code>.

@param v0X the x coordinate of the first triangle vertex @param v0Y the y coordinate of the first triangle vertex @param v1X the x coordinate of the second triangle vertex @param v1Y the y coordinate of the second triangle vertex @param v2X the x coordinate of the third triangle vertex @param v2Y the y coordinate of the third triangle vertex @param x the x coordinate of the point to interpolate at @param y the y coordinate of the point to interpolate at @param dest will hold the interpolation factors <code>(t0, t1, t2)</code> @return dest

public static
interpolationFactorsTriangle
(
double v0X
,
double v0Y
,
double v1X
,
double v1Y
,
double v2X
,
double v2Y
,
double x
,
double y
,)

Meta