jp.carabiner.inkpod.pi.shape.line
クラス Arc

java.lang.Object
  上位を拡張 jp.carabiner.inkpod.pi.shape.line.Arc
すべての実装されたインタフェース:
ShapeLine
直系の既知のサブクラス:
ThickArc

public class Arc
extends java.lang.Object
implements ShapeLine

弧(楕円の一部)


フィールドの概要
protected  java.awt.geom.Point2D.Double center
           
protected  double end
           
protected  int hashCode
           
protected  double height
           
protected  double start
           
protected  double width
           
 
コンストラクタの概要
Arc(MapPoint center, double width, double height, double start, double end)
           
Arc(java.awt.geom.Point2D.Double center, double width, double height, double start, double end)
           
Arc(java.awt.geom.Point2D.Double center, double width, double height, java.awt.geom.Point2D.Double startPoint, java.awt.geom.Point2D.Double endPoint)
           
 
メソッドの概要
 boolean equals(java.lang.Object obj)
           
 java.awt.geom.Point2D.Double getCenter()
           
 double getEnd()
           
 java.awt.geom.Point2D.Double getEndPoint()
           
 double getHeight()
           
 double getStart()
           
 java.awt.geom.Point2D.Double getStartPoint()
           
 double getWidth()
           
 int hashCode()
           
 java.awt.geom.Point2D.Double[] intersectionPoints(Line line)
          直線との交点を求める。
 java.awt.geom.Point2D.Double[] intersectionPoints(LineSegment lineSegment)
          線分との交点を求める
 boolean isOver(java.awt.geom.Point2D p)
          点がこのオブジェクトが表現する線の上にあるか調べる。
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

center

protected java.awt.geom.Point2D.Double center

width

protected double width

height

protected double height

start

protected double start

end

protected double end

hashCode

protected int hashCode
コンストラクタの詳細

Arc

public Arc(MapPoint center,
           double width,
           double height,
           double start,
           double end)

Arc

public Arc(java.awt.geom.Point2D.Double center,
           double width,
           double height,
           double start,
           double end)

Arc

public Arc(java.awt.geom.Point2D.Double center,
           double width,
           double height,
           java.awt.geom.Point2D.Double startPoint,
           java.awt.geom.Point2D.Double endPoint)
メソッドの詳細

getCenter

public java.awt.geom.Point2D.Double getCenter()

getStartPoint

public java.awt.geom.Point2D.Double getStartPoint()

getEndPoint

public java.awt.geom.Point2D.Double getEndPoint()

getWidth

public double getWidth()

getHeight

public double getHeight()

getStart

public double getStart()

getEnd

public double getEnd()

intersectionPoints

public java.awt.geom.Point2D.Double[] intersectionPoints(Line line)
インタフェース ShapeLine の記述:
直線との交点を求める。

定義:
インタフェース ShapeLine 内の intersectionPoints
パラメータ:
line - 交点を求める直線
戻り値:
直線との交点の配列

intersectionPoints

public java.awt.geom.Point2D.Double[] intersectionPoints(LineSegment lineSegment)
インタフェース ShapeLine の記述:
線分との交点を求める

定義:
インタフェース ShapeLine 内の intersectionPoints
パラメータ:
lineSegment - 交点を求める線分
戻り値:
線分との交点の配列

isOver

public boolean isOver(java.awt.geom.Point2D p)
インタフェース ShapeLine の記述:
点がこのオブジェクトが表現する線の上にあるか調べる。

定義:
インタフェース ShapeLine 内の isOver
パラメータ:
p - 調べたい点
戻り値:
点が線の上にある場合はtrue

hashCode

public int hashCode()
オーバーライド:
クラス java.lang.Object 内の hashCode

equals

public boolean equals(java.lang.Object obj)
オーバーライド:
クラス java.lang.Object 内の equals