package com.d2fn.passage.geometry;

import com.google.common.base.Objects;

import static processing.core.PApplet.cos;
import static processing.core.PApplet.sin;

/**
 * Point2D
 * @author Dietrich Featherston
 */
public class Point2D extends AbstractProjectable2D {

    private final float x, y;

    public Point2D(float x, float y) {
        this.x = x;
        this.y = y;
    }

    public float x() { return x; }
    public float y() { return y; }

    public float[] toArray() {
        return new float[] { x(), y() };
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(Point2D.class).add("x", x).add("y", y).toString();
    }

    private static final Point2D origin = new Point2D(0, 0);
}

@@ -73,95 +73,8 @@
 s;%0A%0A
-import static processing.core.PApplet.cos;%0Aimport static processing.core.PApplet.sin;%0A%0A
 /**%0A
@@ -587,22 +587,21 @@
 %7D%0A%0A    p
-rivate
+ublic
  static 

make origin class variable public