I have the following line in a maven project in netbeans.
Projection projection = two.translate(Vector.reg1).projection(direction);
two is a Shape instance.
public abstract class Shape {
public double mass;
public double momentOfIntertia;
public Vector center;
public abstract List<Edge> normals(Vector direction);
public abstract Projection projection(Vector line);
public abstract Shape transform(Transformation transformation);
public abstract Shape translate(Vector translation);
public abstract void render(Graphics graphics);
}
and when I compile I get this error.
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure
org/curious/pounce/Collision.java:[89,39] cannot find symbol
symbol : method translate(org.curious.pounce.math.Vector)
location: class org.curious.pounce.Shape
I'm not sure what can be wrong with this, if anything was wrong netbeans should be pointing out the error in the IDE, which it isn't.
Try running a clean on all projects involved (in maven, assuming that's where the message is from).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With