Revision 42385 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.geometry/org.gvsig.fmap.geometry.api/src/main/java/org/gvsig/fmap/geom/primitive/Circle.java
Circle.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
/** |
28 | 28 |
* <p> |
29 |
* This interface is equivalent to the GM_Circle specified in
|
|
29 |
* This interface is equivalent to the GM_Circle specified in |
|
30 | 30 |
* <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a>. |
31 | 31 |
* Same as Arc, but closed to form a full circle. The "start" and "end" points are equal. |
32 | 32 |
* @see <a href="http://www.iso.org/iso/iso_catalogue/catalogue_tc/catalogue_detail.htm?csnumber=26012">ISO 19107</a> |
33 | 33 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
34 | 34 |
*/ |
35 | 35 |
public interface Circle extends Surface { |
36 |
|
|
36 |
|
|
37 | 37 |
/** |
38 | 38 |
* Sets the two values to define a circle. |
39 | 39 |
* @param center |
40 | 40 |
* The center point of the circle. |
41 | 41 |
* @param radious |
42 | 42 |
* A point that is used to calculate the radius. |
43 |
*/
|
|
44 |
void setPoints(Point center, Point radious);
|
|
45 |
|
|
43 |
*/ |
|
44 |
void setPoints(Point center, Point radious); |
|
45 |
|
|
46 | 46 |
/** |
47 | 47 |
* Sets the two values to define a circle. |
48 | 48 |
* @param center |
49 | 49 |
* The center point of the circle. |
50 | 50 |
* @param radious |
51 | 51 |
* The radius of the circle. |
52 |
*/
|
|
53 |
void setPoints(Point center, double radious);
|
|
54 |
|
|
52 |
*/ |
|
53 |
void setPoints(Point center, double radious); |
|
54 |
|
|
55 | 55 |
/** |
56 | 56 |
* Sets the values to define a circle from three points. The circle |
57 | 57 |
* will be inside or the area defined by the three points. |
58 | 58 |
* @param p1 |
59 | 59 |
* First point |
60 | 60 |
* @param p2 |
61 |
* Second point
|
|
61 |
* Second point |
|
62 | 62 |
* @param p3 |
63 | 63 |
* Third point |
64 | 64 |
*/ |
65 | 65 |
void setPoints(Point p1, Point p2, Point p3); |
66 |
|
|
66 |
|
|
67 | 67 |
/** |
68 | 68 |
* Returns the center of the circle. |
69 | 69 |
* @return |
70 | 70 |
* The center of the circle. |
71 | 71 |
*/ |
72 | 72 |
Point getCenter(); |
73 |
|
|
73 |
|
|
74 | 74 |
/** |
75 | 75 |
* Returns the radius of the circle |
76 | 76 |
* @return |
77 | 77 |
* The radius of the circle |
78 | 78 |
*/ |
79 | 79 |
double getRadious(); |
80 |
|
|
81 |
/** |
|
82 |
* Returns minimum corner of the framing rectangle. |
|
83 |
* |
|
84 |
* @return |
|
85 |
*/ |
|
86 |
Point getRectangleCorner(); |
|
87 |
|
|
88 |
/** |
|
89 |
* Return the height of the framing rectangle. |
|
90 |
* |
|
91 |
* @return |
|
92 |
*/ |
|
93 |
double getRectangleHeight(); |
|
94 |
|
|
95 |
/** |
|
96 |
* Return the width of the framing rectangle. |
|
97 |
* |
|
98 |
* @return |
|
99 |
*/ |
|
100 |
double getRectangleWidth(); |
|
80 | 101 |
} |
Also available in: Unified diff