package t3d; import java.awt.Point; public class Projector { public double lenzLength = 150.0; public Projector(){} public Projector(double lenzLength){ this.lenzLength = lenzLength; } public void translate(double x, double y, double z , int loc[]){ loc[1] = (int)((x*lenzLength)/z); loc[2] = (int)((y*lenzLength)/z); } public void translate(double x, double y, double z , Point loc){ loc.x = (int)((x*lenzLength)/z); loc.y = (int)((y*lenzLength)/z); } }