|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ijchart.xychart.util.GeometryUtil
public abstract class GeometryUtil
Title: IJChart
Description: a chart library for the Java(tm) platform.
Nice static helpers for geometry.Copyright: Copyright (c) 2013
Company:
| Constructor Summary | |
|---|---|
GeometryUtil()
|
|
| Method Summary | |
|---|---|
static double |
calculateArcEndPointAngle(java.awt.geom.Arc2D arc)
Calculate the actual angle of arc end point. |
static double |
distanceOfPoints(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Calculate the distance between two points. |
static java.awt.geom.Point2D |
extentPoint(java.awt.geom.Point2D startPoint,
java.awt.geom.Point2D endPoint,
double disToStartPoint)
Two points where the straight line,with direction from startPoint to endPoint as from the point startPoint distance disToStartPoint. |
static java.awt.geom.Point2D |
findLineCrossPoint(java.awt.geom.Line2D line1,
java.awt.geom.Line2D line2)
Calculate the cross point of two line2,return null if not intersection. |
static java.awt.geom.GeneralPath |
getArcPath(java.awt.geom.Arc2D arc)
Calculate the path of arc. |
static java.awt.geom.Point2D |
middlePoint(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
Calculate the midpoint of two points. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeometryUtil()
| Method Detail |
|---|
public static double distanceOfPoints(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
p1 - Point2D
The point1 (null not permitted).p2 - Point2D
The point1 (null not permitted).
public static java.awt.geom.Point2D middlePoint(java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2)
p1 - Point2D
The point1 (null not permitted).p2 - Point2D
The point1 (null not permitted).
public static java.awt.geom.Point2D extentPoint(java.awt.geom.Point2D startPoint,
java.awt.geom.Point2D endPoint,
double disToStartPoint)
startPoint - Point2D
The start point.endPoint - Point2D
The end point.disToStartPoint - double
The distince.
public static double calculateArcEndPointAngle(java.awt.geom.Arc2D arc)
arc - Arc2D
The arc (null not permitted).
public static java.awt.geom.Point2D findLineCrossPoint(java.awt.geom.Line2D line1,
java.awt.geom.Line2D line2)
line1 - Line2D
The first line (null not permitted).line2 - Line2D
The second line (null not permitted).
public static java.awt.geom.GeneralPath getArcPath(java.awt.geom.Arc2D arc)
arc - Arc2D
The arc (null not permitted).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||