|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.root.Rectangle<C>
C - coefficient type.public class Rectangle<C extends RingElem<C> & Rational>
Rectangle. For example isolating rectangle for complex roots.
| Field Summary | |
|---|---|
Complex<C>[] |
corners
rectangle corners. |
| Constructor Summary | |
|---|---|
Rectangle(Complex<C> mid)
Constructor. |
|
Rectangle(Complex<C>[] c)
Constructor. |
|
Rectangle(Complex<C> sw,
Complex<C> ne)
Constructor. |
|
Rectangle(Complex<C> nw,
Complex<C> sw,
Complex<C> se,
Complex<C> ne)
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
centerApprox()
Approximation of center. |
Rectangle<C> |
clone()
Clone this. |
boolean |
contains(Complex<C> c)
Contains a point. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
Rectangle<C> |
exchangeNE(Complex<C> c)
Exchange NE corner. |
Rectangle<C> |
exchangeNW(Complex<C> c)
Exchange NW corner. |
Rectangle<C> |
exchangeSE(Complex<C> c)
Exchange SE corner. |
Rectangle<C> |
exchangeSW(Complex<C> c)
Exchange SW corner. |
Complex<C> |
getCenter()
Complex center. |
Complex<BigDecimal> |
getDecimalCenter()
Complex of BigDecimal approximation of center. |
Complex<C> |
getNE()
Get north east corner. |
Complex<C> |
getNW()
Get north west corner. |
Complex<BigRational> |
getRationalCenter()
Complex of BigRational approximation of center. |
Complex<C> |
getSE()
Get south east corner. |
Complex<C> |
getSW()
Get south west corner. |
int |
hashCode()
Hash code for this Rectangle. |
C |
length()
Length. |
Complex<C> |
randomPoint()
Random point of recatangle. |
BigRational |
rationalLength()
Rational Length. |
java.lang.String |
toScript()
Get a scripting compatible string representation. |
java.lang.String |
toString()
String representation of Rectangle. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Complex<C extends RingElem<C> & Rational>[] corners
| Constructor Detail |
|---|
public Rectangle(Complex<C>[] c)
c - array of corners.public Rectangle(Complex<C> mid)
mid - corner.
public Rectangle(Complex<C> sw,
Complex<C> ne)
sw - corner.ne - corner.
public Rectangle(Complex<C> nw,
Complex<C> sw,
Complex<C> se,
Complex<C> ne)
nw - corner.sw - corner.se - corner.ne - corner.| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
public Complex<C> getNW()
public Complex<C> getSW()
public Complex<C> getSE()
public Complex<C> getNE()
public Rectangle<C> exchangeNW(Complex<C> c)
c - new NW corner.
public Rectangle<C> exchangeSW(Complex<C> c)
c - new SW corner.
public Rectangle<C> exchangeSE(Complex<C> c)
c - new SE corner.
public Rectangle<C> exchangeNE(Complex<C> c)
c - new NE corner.
public boolean contains(Complex<C> c)
c - point.
public Complex<C> randomPoint()
public Rectangle<C> clone()
clone in class java.lang.ObjectObject.clone()public boolean equals(java.lang.Object b)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public Complex<C> getCenter()
public Complex<BigRational> getRationalCenter()
public Complex<BigDecimal> getDecimalCenter()
public java.lang.String centerApprox()
public C length()
public BigRational rationalLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||