@Override
public void drawSegment(Vec2 p1, Vec2 p2, Color3f color) {
GL2 gl = panel.getGL().getGL2();
gl.glPushMatrix();
transformViewport(gl, zero);
gl.glBegin(GL2.GL_LINES);
gl.glColor3f(color.x, color.y, color.z);
gl.glVertex3f(p1.x, p1.y, 0);
gl.glVertex3f(p2.x, p2.y, 0);
gl.glEnd();
gl.glPopMatrix();