public interface EuclideanManager
Modifier and Type | Method and Description |
---|---|
boolean |
areThreePointsInLine(double ax,
double ay,
double bx,
double by,
double cx,
double cy) |
double |
calculateAngle(double vertexx,
double vertexy,
double px,
double py)
Find the angle in the counterclockwise direction between
the horizontal line and point p relative to the vertex
|
double |
calculateAngle(double vertexx,
double vertexy,
double p1x,
double p1y,
double p2x,
double p2y)
Calculate the angle between points p1 and p2 with vertex at vertex point
|
EuclideanLine2D |
createLine2D(double m,
double b) |
EuclideanLine2D |
createLine2D(double coefA,
double coefB,
double coefC) |
EuclideanLine2D |
createLine2D(double x0,
double y0,
double x1,
double y1) |
EuclideanLine2D |
createLine2D(double m,
java.awt.geom.Point2D p) |
EuclideanLine2D |
createLine2D(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2) |
double |
distance(double x1,
double y1,
double x2,
double y2)
Gets the distance between two points
|
double |
distance(java.awt.geom.Point2D a,
java.awt.geom.Point2D b)
Gets the distance between two points
|
java.awt.geom.Point2D |
getCenter(double ax,
double ay,
double bx,
double by,
double cx,
double cy)
Gets center point of three points.
|
java.awt.geom.Point2D |
getCenter(java.awt.geom.Point2D a,
java.awt.geom.Point2D b,
java.awt.geom.Point2D c)
Gets center point of three points.
|
double |
getCoefDirection(double centerx,
double centery,
double point1x,
double point1y,
double point2x,
double point2y)
Returns the coefficient that expresses the direction in which the
angle with vertex at center a and from point1 to point2 is beaten
coefDirection >= 0 then the direction is CCW
else the direction is CW
|
double |
getCoefDirection(java.awt.geom.Point2D center,
java.awt.geom.Point2D point1,
java.awt.geom.Point2D point2)
Returns the coefficient that expresses the direction in which the
angle with vertex at center a and from point1 to point2 is beaten
coefDirection >= 0 then the direction is CCW
else the direction is CW
|
java.awt.geom.Point2D |
getMidPoint(double ax,
double ay,
double bx,
double by)
Gets midpoint of two points
|
java.awt.geom.Point2D |
getMidPoint(java.awt.geom.Point2D a,
java.awt.geom.Point2D b)
Gets midpoint of two points
|
java.awt.geom.Point2D |
getPointAtDistance(double x1,
double y1,
double distance,
double angle,
java.lang.String unit) |
double |
getYIntercept(double m,
double x,
double y) |
double |
getYIntercept(double m,
java.awt.geom.Point2D p) |
EuclideanLine2D createLine2D(double coefA, double coefB, double coefC)
EuclideanLine2D createLine2D(double m, double b)
EuclideanLine2D createLine2D(double m, java.awt.geom.Point2D p)
double getYIntercept(double m, java.awt.geom.Point2D p)
double getYIntercept(double m, double x, double y)
EuclideanLine2D createLine2D(double x0, double y0, double x1, double y1)
EuclideanLine2D createLine2D(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
double distance(java.awt.geom.Point2D a, java.awt.geom.Point2D b)
a
- Point oneb
- Point twodouble distance(double x1, double y1, double x2, double y2)
x1
- x of point oney1
- y of point onex2
- x of point twoy2
- y of point twojava.awt.geom.Point2D getCenter(double ax, double ay, double bx, double by, double cx, double cy)
ax
- x of point oneay
- y of point onebx
- x of point twoby
- y of point twocx
- x of point threecy
- y of point threejava.awt.geom.Point2D getCenter(java.awt.geom.Point2D a, java.awt.geom.Point2D b, java.awt.geom.Point2D c)
a
- Point oneb
- Point twoc
- Point threejava.awt.geom.Point2D getMidPoint(java.awt.geom.Point2D a, java.awt.geom.Point2D b)
a
- Point oneb
- Point twojava.awt.geom.Point2D getMidPoint(double ax, double ay, double bx, double by)
ax
- x of point oneay
- y of point onebx
- x of point twoby
- y of point twodouble getCoefDirection(double centerx, double centery, double point1x, double point1y, double point2x, double point2y)
centerx
- centery
- point1x
- point1y
- point2x
- point2y
- double getCoefDirection(java.awt.geom.Point2D center, java.awt.geom.Point2D point1, java.awt.geom.Point2D point2)
center
- point1
- point2
- double calculateAngle(double vertexx, double vertexy, double p1x, double p1y, double p2x, double p2y)
vertexx
- vertexy
- p1y
- p1x
- p2x
- p2y
- double calculateAngle(double vertexx, double vertexy, double px, double py)
vertexx
- vertexy
- px
- py
- boolean areThreePointsInLine(double ax, double ay, double bx, double by, double cx, double cy)
java.awt.geom.Point2D getPointAtDistance(double x1, double y1, double distance, double angle, java.lang.String unit)