How do you sample an image at a computed coordinate in the context of a Blender Internal node-based texture?
The calculations belong in the material not the texture.

The nodes for a texture define the colour for every available point as if it was an image.

The texture node in a material requests the colour from the texture at a specific point. The vector input to the texture node defines the point requested from the texture.