Interpolate

The Interpolate method interpolates a value within the grid at a specified position. Returns a double.

Syntax

object.Interpolate( X, Y )

Parameter

Type

Required/

Optional

Default

Description

X

Double

Required

 

This specifies the X value of the node for which the Z value is to be calculated.

Y

Double

Required

 

This specifies the Y value of the node for which the Z value is to be calculated.

Remarks

uses a bilinear interpolation method to calculate Z values at points that do not coincide with grid nodes.

Example

This example demonstrates how to return the interpolated value of a specified position within a grid.

Debug.Print Grid.Interpolate(X:=36.5, Y:=27.3)

Used by: Grid object