org.jmat.gui.plotObjects
Class RelativeCoord
java.lang.Object
|
+--org.jmat.gui.plotObjects.Coord
|
+--org.jmat.gui.plotObjects.RelativeCoord
- All Implemented Interfaces:
- CommandLinePrintable, Noteable
- public class RelativeCoord
- extends Coord
- implements Noteable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
base
protected Base base
isNoteable
protected boolean isNoteable
RelativeCoord
public RelativeCoord(double[] pC,
Base b)
barycenter
public static RelativeCoord barycenter(RelativeCoord A,
double p1,
Coord B,
double p2)
getScreenCoordCopy
public int[] getScreenCoordCopy()
- Overrides:
getScreenCoordCopy in class Coord
getBase
public Base getBase()
setBase
public void setBase(Base b)
setPlotCoord
public void setPlotCoord(double[] pC)
- Overrides:
setPlotCoord in class Coord
setPlotCoord
public void setPlotCoord(double pCi,
int i)
projection
public RelativeCoord projection(int dimension)
addVector
public RelativeCoord addVector(double[] v)
addVectorEquals
public void addVectorEquals(double[] v)
addVectorEquals
public void addVectorEquals(double vi,
int i)
toString
public java.lang.String toString()
- Overrides:
toString in class Coord
setNotable
public void setNotable(boolean b)
tryNote
public boolean tryNote(int[] sC)
- Specified by:
tryNote in interface Noteable
tryNote
public boolean tryNote(int[] sC,
java.awt.Graphics comp)
- Specified by:
tryNote in interface Noteable
note
public void note(java.awt.Graphics comp)
- Specified by:
note in interface Noteable
approx
public static double approx(double val,
int decimal)
checkSameRelativesBases
public void checkSameRelativesBases(RelativeCoord B)