import Matrix3D;
import Point3D;

class Test
{
  public static void main(String args[])
    {
      Matrix3D mat = new Matrix3D();
      Matrix3D m2 = new Matrix3D();
      Point3D pts[] = new Point3D[3], out[] = new Point3D[3];
      pts[0] = new Point3D(-1, -1, 1);
      out[0] = new Point3D(0,0,0);
      pts[1] = new Point3D(2, 2, 2);
      out[1] = new Point3D(0,0,0);
      pts[2] = new Point3D(1, 0, 2);
      out[2] = new Point3D(0,0,0);
      mat.perspective(-1, 1, 1, -1, 1, 2);
      System.out.println(mat.toString());
      mat.transform(pts, out, 0, 3);
      System.out.println(out[0].toString());
      System.out.println(out[1].toString());
      System.out.println(out[2].toString());
      m2.lookAt(0, 0, 0,
		0, 0, -1,
		0, 1, 0);
      System.out.println(m2.toString());
    }
}
