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 Spointadd(Spoint other)voidAddClosest(Spoint who, long col)voidAddSpheresLink(Spoint who)voidAddSpheresLink(Spoint who, long col)static doubleangleBetweenPoints(Spoint a, Spoint b, Spoint c)SpointAverage(Spoint other)SpointDelete()doubledistance(Spoint other)static SpointinfiniteLineIntersection(Spoint base1, Spoint v1, Spoint base2, Spoint v2)booleanInsert(Spoint who)SpointNegate()voidNNDelete()SpointNormalize()SpointnormalLeft()SpointNormalRight()static SpointPolar2Vect(double r, double theta)Spointscale(double byWhat)Spointsubtract(Spoint other)java.lang.StringtoString()SpointVirtualInsert(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:
toStringin 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)
-
-