interpolateTriangle

Bilinearly interpolate the three-dimensional vector <i>f</i> over the given triangle and store the result in <code>dest</code>. <p> Reference: <a href="https://en.wikipedia.org/wiki/Barycentric_coordinate_system">https://en.wikipedia.org/</a>

@param v0X the x coordinate of the first triangle vertex @param v0Y the y coordinate of the first triangle vertex @param f0X the x component of the value of <i>f</i> at the first vertex @param f0Y the y component of the value of <i>f</i> at the first vertex @param f0Z the z component of the value of <i>f</i> at the first vertex @param v1X the x coordinate of the second triangle vertex @param v1Y the y coordinate of the second triangle vertex @param f1X the x component of the value of <i>f</i> at the second vertex @param f1Y the y component of the value of <i>f</i> at the second vertex @param f1Z the z component of the value of <i>f</i> at the second vertex @param v2X the x coordinate of the third triangle vertex @param v2Y the y coordinate of the third triangle vertex @param f2X the x component of the value of <i>f</i> at the third vertex @param f2Y the y component of the value of <i>f</i> at the third vertex @param f2Z the z component of the value of <i>f</i> at the third vertex @param x the x coordinate of the point to interpolate <i>f</i> at @param y the y coordinate of the point to interpolate <i>f</i> at @param dest will hold the interpolation result @return dest

  1. double interpolateTriangle(double v0X, double v0Y, double f0, double v1X, double v1Y, double f1, double v2X, double v2Y, double f2, double x, double y)
  2. Vector2d interpolateTriangle(double v0X, double v0Y, double f0X, double f0Y, double v1X, double v1Y, double f1X, double f1Y, double v2X, double v2Y, double f2X, double f2Y, double x, double y, Vector2d dest)
  3. Vector3d interpolateTriangle(double v0X, double v0Y, double f0X, double f0Y, double f0Z, double v1X, double v1Y, double f1X, double f1Y, double f1Z, double v2X, double v2Y, double f2X, double f2Y, double f2Z, double x, double y, Vector3d dest)
    public static
    interpolateTriangle
    (
    double v0X
    ,
    double v0Y
    ,
    double f0X
    ,
    double f0Y
    ,
    double f0Z
    ,
    double v1X
    ,
    double v1Y
    ,
    double f1X
    ,
    double f1Y
    ,
    double f1Z
    ,
    double v2X
    ,
    double v2Y
    ,
    double f2X
    ,
    double f2Y
    ,
    double f2Z
    ,
    double x
    ,
    double y
    ,)

Meta