svn-gvsig-desktop / 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 / Circumference.java @ 43909
History | View | Annotate | Download (1.93 KB)
1 |
/**
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2013 gvSIG Association.
|
5 |
*
|
6 |
* This program is free software; you can redistribute it and/or
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
|
25 |
package org.gvsig.fmap.geom.primitive; |
26 |
|
27 |
|
28 |
public interface Circumference extends Curve { |
29 |
|
30 |
/**
|
31 |
* Sets the two values to define a circumference.
|
32 |
* @param center
|
33 |
* The center point of the circumference.
|
34 |
* @param radious
|
35 |
* A point that is used to calculate the radius.
|
36 |
*/
|
37 |
void setPoints(Point center, Point radious); |
38 |
|
39 |
/**
|
40 |
* Sets the two values to define a circumference.
|
41 |
* @param center
|
42 |
* The center point of the circumference.
|
43 |
* @param radious
|
44 |
* The radius of the circumference.
|
45 |
*/
|
46 |
void setPoints(Point center, double radious); |
47 |
|
48 |
/**
|
49 |
* Sets the values to define a circumference from three points.
|
50 |
* @param p1
|
51 |
* First point
|
52 |
* @param p2
|
53 |
* Second point
|
54 |
* @param p3
|
55 |
* Third point
|
56 |
*/
|
57 |
void setPoints(Point p1, Point p2, Point p3); |
58 |
|
59 |
/**
|
60 |
* Returns the center of the circumference.
|
61 |
* @return
|
62 |
* The center of the circumference.
|
63 |
*/
|
64 |
Point getCenter();
|
65 |
|
66 |
/**
|
67 |
* Returns the radius of the circumference
|
68 |
* @return
|
69 |
* The radius of the circumference
|
70 |
*/
|
71 |
double getRadious();
|
72 |
} |