interpolateZ method
Computes the Z-value (elevation) of an XY point on a three-dimensional plane defined by this triangle (whose vertices must have Z-values). This triangle must not be degenerate (in other words, the triangle must enclose a non-zero area), and must not be parallel to the Z-axis.
This method can be used to interpolate the Z-value of a point inside this triangle (for example, of a TIN facet with elevations on the vertices).
@param p the point to compute the Z-value of @return the computed Z-value (elevation) of the point
Implementation
double interpolateZ(Coordinate? p) {
if (p == null) throw ArgumentError("Supplied point is null.");
return interpolateZStatic(p, this.p0, this.p1, this.p2);
}