|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tbosch.utilities.trigonometry.Circle
public class Circle
A normal circle representation with middle point and radius.
Constructor Summary | |
---|---|
Circle(java.awt.Point middlePoint,
float radius)
Constructs the circle. |
Method Summary | |
---|---|
java.awt.Point[] |
getCirclePoints()
Gets the points that build a circle. |
java.awt.Point[][] |
getInnerTangentPoints(Circle circle)
Gets the tangent points of the inner common tangent lines of two circles. |
java.awt.Point |
getMiddlePoint()
|
java.awt.Point[][] |
getOuterTangentPoints(Circle circle)
Gets the tangent points of the outer common tangent lines of two circles. |
float |
getRadius()
|
java.awt.Point[][] |
getTangentPoints(Circle circle)
Gets the tangent points of the common inner and outer tangent lines. |
java.awt.Point[] |
getTangentPoints(java.awt.Point point)
Gets the two tangent points. |
java.lang.String |
toString()
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Circle(java.awt.Point middlePoint, float radius)
middlePoint
- The middle point of the circleradius
- The radius of the circleMethod Detail |
---|
public java.awt.Point[] getCirclePoints()
public java.awt.Point[] getTangentPoints(java.awt.Point point)
point
- The point laying outside the circle
IntersectionException
- If the point is inside the circlepublic java.awt.Point[][] getOuterTangentPoints(Circle circle)
circle
- The second circle
IntersectionException
- If the given circle is fully inside this circlepublic java.awt.Point[][] getInnerTangentPoints(Circle circle)
circle
- The second circle
IntersectionException
- If the given circle intersects this circlepublic java.awt.Point[][] getTangentPoints(Circle circle)
circle
- The second circle
IntersectionException
- If the given circle is fully inside this circle.public java.awt.Point getMiddlePoint()
public float getRadius()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |