Revision 28990 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/Ellipse.java

View differences:

Ellipse.java
29 29

  
30 30

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

  

Also available in: Unified diff