import java.awt.*;

public class Point3D
{
	public float x, y, z, w;

	/* null constructor */
	public Point3D()
	{};

	/* init with the spec. values, w=1 */
	public Point3D(float xv, float yv, float zv)
	{
		x=xv;
		y=yv;
		z=zv;
		w=1.0f;
	}

	/* init with spec. values, w spec as well */
	public Point3D(float xv, float yv, float zv, float wv)
	{
		x=xv;
		y=yv;
		z=zv;
		w=wv;
	}


	/* convert to string form... */
	public String toString() {
        return new String(" ["+x+", "+y+", "+z+", "+w+"]");
    }
}
