interpolateTriangle
- double interpolateTriangle(double v0X, double v0Y, double f0, double v1X, double v1Y, double f1, double v2X, double v2Y, double f2, double x, double y)
static
double
interpolateTriangle
(,,,,,,,,,,) - 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)
- 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)
interpolation_d
static functions
Bilinearly interpolate the single scalar value <i>f</i> over the given triangle. <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 f0 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 f1 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 f2 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 @return the interpolated value of <i>f</i>