gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.util / org.gvsig.tools.util.api / src / main / java / org / gvsig / euclidean / EuclideanManager.java @ 2561
History | View | Annotate | Download (859 Bytes)
1 |
/*
|
---|---|
2 |
* To change this license header, choose License Headers in Project Properties.
|
3 |
* To change this template file, choose Tools | Templates
|
4 |
* and open the template in the editor.
|
5 |
*/
|
6 |
package org.gvsig.euclidean; |
7 |
|
8 |
import java.awt.geom.Point2D; |
9 |
|
10 |
/**
|
11 |
*
|
12 |
* @author fdiaz
|
13 |
*/
|
14 |
public interface EuclideanManager { |
15 |
|
16 |
EuclideanLine2D createLine2D(double coefA, double coefB, double coefC); |
17 |
|
18 |
EuclideanLine2D createLine2D(double m, double b); |
19 |
|
20 |
EuclideanLine2D createLine2D(double m, Point2D p); |
21 |
|
22 |
double getYIntercept(double m, Point2D p); |
23 |
|
24 |
double getYIntercept(double m, double x, double y); |
25 |
|
26 |
EuclideanLine2D createLine2D(double x0, double y0, double x1, double y1); |
27 |
|
28 |
EuclideanLine2D createLine2D(Point2D p1, Point2D p2); |
29 |
|
30 |
double distance(Point2D p1, Point2D p2); |
31 |
|
32 |
double distance(double x1, double y1, double x2, double y2); |
33 |
} |