java.lang.Object
edu.jas.root.Rectangle<C>
- Type Parameters:
C- coefficient type.
- All Implemented Interfaces:
Serializable
Rectangle. For example isolating rectangle for complex roots.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApproximation of center.booleanContains a point.booleanContains a rectangle.copy()Copy this.booleanComparison with any other object.exchangeNE(Complex<C> c) Exchange NE corner.exchangeNW(Complex<C> c) Exchange NW corner.exchangeSE(Complex<C> c) Exchange SE corner.exchangeSW(Complex<C> c) Exchange SW corner.Complex center.Complex of BigDecimal approximation of center.getNE()Get north east corner.getNW()Get north west corner.Complex of BigRational approximation of center.getSE()Get south east corner.getSW()Get south west corner.inthashCode()Hash code for this Rectangle.length()Length.Length imaginary side.Length real side.Random point of recatangle.Rational Length.toScript()Get a scripting compatible string representation.toString()String representation of Rectangle.
-
Field Details
-
corners
-
-
Constructor Details
-
Rectangle
-
Rectangle
-
Rectangle
-
Rectangle
-
-
Method Details
-
toString
-
toScript
Get a scripting compatible string representation.- Returns:
- script compatible representation for this Rectangle.
-
getNW
-
getSW
-
getSE
-
getNE
-
exchangeNW
-
exchangeSW
-
exchangeSE
-
exchangeNE
-
contains
-
contains
-
randomPoint
-
copy
-
equals
-
hashCode
-
getCenter
-
getRationalCenter
Complex of BigRational approximation of center.- Returns:
- r + i m as rational approximation of the center.
-
getDecimalCenter
Complex of BigDecimal approximation of center.- Returns:
- r + i m as decimal approximation of the center.
-
centerApprox
Approximation of center.- Returns:
- r + i m as string of decimal approximation of the center.
-
length
-
rationalLength
-
lengthReal
-
lengthImag
-