|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.datatypes.Circle
public class Circle
Defines a circle with an anchor at its center and a size, both in arbitrary units.
| Field Summary | |
|---|---|
private CoordinateCartesianAbsolute |
_center
the anchor position at the center |
private Radius |
_radius
the radius |
| Constructor Summary | |
|---|---|
Circle(CoordinateCartesianAbsolute center,
Radius radius)
Creates a circle descriptor. |
|
| Method Summary | |
|---|---|
CoordinateCartesianAbsolute[] |
calculateLineIntercepts(Line line)
Calculates the two points where a line passing through a circle intercepts the perimeter. |
CoordinateCartesianAbsolute |
getBoundingBoxBottomRight()
Determines the bottom-right corner of the box that bounds the circle. |
CoordinateCartesianAbsolute |
getBoundingBoxTopLeft()
Determines the top-left corner of the box that bounds the circle. |
CoordinateCartesianAbsolute |
getCenter()
Gets the anchor position at the center. |
Radius |
getRadius()
Gets the radius. |
boolean |
isContained(CoordinateCartesianAbsolute point)
Determines whether a point is contained within the circle. |
boolean |
isContained(CoordinateCartesianAbsolute point,
ArcMathematical arc,
boolean isInclusive)
Determines whether a point is contained within a sector of the circle. |
private void |
setRadius(Radius radius)
Sets the radius. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final CoordinateCartesianAbsolute _center
private Radius _radius
| Constructor Detail |
|---|
public Circle(CoordinateCartesianAbsolute center,
Radius radius)
center - - the anchor position at the centerradius - - the radius| Method Detail |
|---|
public CoordinateCartesianAbsolute[] calculateLineIntercepts(Line line)
line - - the line
public CoordinateCartesianAbsolute getBoundingBoxBottomRight()
public CoordinateCartesianAbsolute getBoundingBoxTopLeft()
public CoordinateCartesianAbsolute getCenter()
public Radius getRadius()
public boolean isContained(CoordinateCartesianAbsolute point)
point - - the point
public boolean isContained(CoordinateCartesianAbsolute point,
ArcMathematical arc,
boolean isInclusive)
point - - the pointarc - - the arc defining the sectorisInclusive - - whether to include the end angle as part of the sector
private void setRadius(Radius radius)
radius - - the radiuspublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||