Statistics
| Revision:

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 / Ellipse.java @ 40767

History | View | Annotate | Download (2.24 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
/**
29
 * <p>
30
 * An ellipse is the finite or bounded case of a conic section, 
31
 * the geometric shape that results from cutting a circular conical 
32
 * or cylindrical surface with an oblique plane (the other two cases being 
33
 * the parabola and the hyperbola). It is also the locus of all points of 
34
 * the plane whose distances to two fixed points add to the same constant.
35
 * </p>
36
 * @see <a href="http://en.wikipedia.org/wiki/Ellipse">Full definition from Wikipedia</a>
37
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
38
 */
39
public interface Ellipse extends Surface {
40
                
41
        /**
42
         * Sets the values to define a ellipse.
43
         * @param axis1Start
44
         * The point where the first axis starts.
45
         * @param axis1End
46
         * The point where the first axis ends.
47
         * @param axis2Length
48
         * The length of the second axis.
49
         */
50
        void setPoints(Point axis1Start, Point axis1End, double axis2Length);        
51
        
52
        /**
53
         * Returns the point where the first axis starts.
54
         * @return
55
         * The point where the first axis starts.
56
         */
57
        Point getAxis1Start();
58
        
59
        /**
60
         * Returns the point where the first axis ends.
61
         * @return
62
         * The point where the first axis ends.
63
         */
64
        Point getAxis1End();
65
        
66
        /**
67
         * Returns the length of the second axis.
68
         * @return
69
         * The length of the second axis.
70
         */
71
        double getAxis2Dist();
72
}
73