|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttreebolic.core.HyperLocation
public class HyperLocation
Hypercircle node location in hyperspace
Field Summary | |
---|---|
private static double |
BORDER
Where border starts (distance to origin) |
Complex |
center
Center as mapped by current transform |
Complex |
center0
Center as computed by initial layout |
double |
dist
Distance to (0,0) |
boolean |
isBorder
Whether this hypercircle nears border |
boolean |
isDirty
Computation state (set whenever either center or radius or both change) |
double |
radius
Radius |
Constructor Summary | |
---|---|
HyperLocation()
Construct hypercircle |
Method Summary | |
---|---|
void |
clone(HyperLocation thisHyperLocation)
Clone |
static double |
getHyperDistance(Complex z1,
Complex z2)
Distance between 2 points |
void |
reset()
Reset to untransformed initial position |
void |
set(Complex o,
double r)
Set hypercircle data |
java.lang.String |
toString()
|
void |
transform(IHyperTransform t)
Apply transform to this hypercircle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final double BORDER
public final Complex center0
public final Complex center
public double radius
public double dist
public boolean isDirty
public boolean isBorder
Constructor Detail |
---|
public HyperLocation()
Method Detail |
---|
public void set(Complex o, double r)
o
- centerr
- radiuspublic void reset()
public void clone(HyperLocation thisHyperLocation)
thisHyperLocation
- hyper locationpublic void transform(IHyperTransform t)
t
- transformpublic static double getHyperDistance(Complex z1, Complex z2)
z1
- point1z2
- point2
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |