Package com.macrofocus.treeplot
Class Spoint
- java.lang.Object
-
- com.macrofocus.treeplot.Spoint
-
public final class Spoint extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Spoint(double inx, double iny)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Spoint
add(Spoint other)
void
AddClosest(Spoint who, long col)
void
AddSpheresLink(Spoint who)
void
AddSpheresLink(Spoint who, long col)
static double
angleBetweenPoints(Spoint a, Spoint b, Spoint c)
Spoint
Average(Spoint other)
Spoint
Delete()
double
distance(Spoint other)
static Spoint
infiniteLineIntersection(Spoint base1, Spoint v1, Spoint base2, Spoint v2)
boolean
Insert(Spoint who)
Spoint
Negate()
void
NNDelete()
Spoint
Normalize()
Spoint
normalLeft()
Spoint
NormalRight()
static Spoint
Polar2Vect(double r, double theta)
Spoint
scale(double byWhat)
Spoint
subtract(Spoint other)
java.lang.String
toString()
Spoint
VirtualInsert(Spoint who)
-
-
-
Method Detail
-
Insert
public boolean Insert(Spoint who)
-
Delete
public Spoint Delete()
-
AddClosest
public void AddClosest(Spoint who, long col)
-
NNDelete
public void NNDelete()
-
AddSpheresLink
public void AddSpheresLink(Spoint who, long col)
-
AddSpheresLink
public void AddSpheresLink(Spoint who)
-
distance
public double distance(Spoint other)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
scale
public Spoint scale(double byWhat)
-
NormalRight
public Spoint NormalRight()
-
normalLeft
public Spoint normalLeft()
-
Normalize
public Spoint Normalize()
-
Negate
public Spoint Negate()
-
infiniteLineIntersection
public static Spoint infiniteLineIntersection(Spoint base1, Spoint v1, Spoint base2, Spoint v2)
-
Polar2Vect
public static Spoint Polar2Vect(double r, double theta)
-
-