package org.jzy3d.maths;

/** 
 * A Mapper provides an abstract definition of a function that allows
 * getting a Z value according to a pair of (X,Y) coordinates.
 * It moreover provide the service of gathering input and computed output
 * into a {@link Coordinates} object, that provides arrays of 
 * X,Y, and Z coordinates as float values.
 * 
 * {@link Mapper} is deprecated. One should use {link net.masagroup.jzy3d.plot3d.builder.Mapper} instead
 */
@Deprecated
public abstract class Mapper {
	/** 
	 * Return an array of Z values according to the implemented function
	 * that provides an output according to an array of (X,Y) coordinates.
	 * */
	public abstract double[] getZ(double[][] xy);
	
	/** 
	 * Return a Z value according to the implemented function
	 * that provides an output according to an (X,Y) coordinates.
	 * */
	public abstract double getZ(double[] xy);
	
	/*****************************************************************************/
	
	/** 
	 * Return a structure containing X, Y, and Z coordinates as arrays of float.
	 */
	public Coordinates getCoordinates(double[][] xy){
		double[] zd = getZ(xy);
		
		float [] x = new float[xy.length];
		float [] y = new float[xy.length];
		float [] z = new float[xy.length];
		
		for(int m=0; m 

Ads help maintain this website.