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

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

public class Line
extends java.lang.Object
implements ShapeLine

直線


フィールドの概要
protected  double a
           
protected  double b
           
protected  double c
           
protected  int hashCode
           
protected  boolean initHashCode
           
 
コンストラクタの概要
protected Line(double a, double b, double c)
           
  Line(double x1, double y1, double x2, double y2)
           
  Line(java.awt.geom.Point2D p1, java.awt.geom.Point2D p2)
           
 
メソッドの概要
 double distance(MapPoint p)
           
 double distance(java.awt.geom.Point2D.Double p)
           
 double distance(java.awt.geom.Point2D p)
           
 boolean equals(java.lang.Object obj)
           
 double getCoefficientX()
           
 double getCoefficientY()
           
 double getConstantTerm()
           
 double getX(double y)
           
 double getY(double x)
           
 int hashCode()
           
protected  int initHashCode()
           
 java.awt.geom.Point2D.Double intersectionPoint(Line line)
           
 java.awt.geom.Point2D.Double[] intersectionPoints(Line line)
          直線との交点を求める。
 java.awt.geom.Point2D.Double[] intersectionPoints(LineSegment lineSegment)
          線分との交点を求める
 boolean isLower(double x, double y)
           
 boolean isLower(long x, long y)
           
 boolean isLower(MapPoint p)
           
 boolean isLower(java.awt.geom.Point2D p)
           
 boolean isOver(double x, double y)
           
 boolean isOver(long x, long y)
           
 boolean isOver(MapPoint p)
           
 boolean isOver(java.awt.geom.Point2D p)
          点がこのオブジェクトが表現する線の上にあるか調べる。
 boolean isUpper(double x, double y)
           
 boolean isUpper(long x, long y)
           
 boolean isUpper(MapPoint p)
           
 boolean isUpper(java.awt.geom.Point2D p)
           
 Line rotateRightAngle(MapPoint p)
           
 Line rotateRightAngle(java.awt.geom.Point2D.Double p)
           
 Line rotateRightAngle(java.awt.geom.Point2D p)
           
 java.lang.String toString()
           
 Line translate(double d)
           
 Line translate(java.awt.geom.Point2D p)
           
protected  double transrateC(double d)
           
 
クラス java.lang.Object から継承されたメソッド
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

a

protected double a

b

protected double b

c

protected double c

initHashCode

protected boolean initHashCode

hashCode

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

Line

public Line(double x1,
            double y1,
            double x2,
            double y2)

Line

public Line(java.awt.geom.Point2D p1,
            java.awt.geom.Point2D p2)

Line

protected Line(double a,
               double b,
               double c)
メソッドの詳細

initHashCode

protected int initHashCode()

getCoefficientX

public double getCoefficientX()

getCoefficientY

public double getCoefficientY()

getConstantTerm

public double getConstantTerm()

getY

public double getY(double x)

getX

public double getX(double y)

translate

public Line translate(double d)

translate

public Line translate(java.awt.geom.Point2D p)

transrateC

protected double transrateC(double d)

rotateRightAngle

public Line rotateRightAngle(MapPoint p)

rotateRightAngle

public Line rotateRightAngle(java.awt.geom.Point2D p)

rotateRightAngle

public Line rotateRightAngle(java.awt.geom.Point2D.Double p)

isUpper

public boolean isUpper(MapPoint p)

isUpper

public boolean isUpper(long x,
                       long y)

isUpper

public boolean isUpper(java.awt.geom.Point2D p)

isUpper

public boolean isUpper(double x,
                       double y)

isLower

public boolean isLower(MapPoint p)

isLower

public boolean isLower(long x,
                       long y)

isLower

public boolean isLower(java.awt.geom.Point2D p)

isLower

public boolean isLower(double x,
                       double y)

isOver

public boolean isOver(MapPoint p)

isOver

public boolean isOver(long x,
                      long y)

isOver

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

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

isOver

public boolean isOver(double x,
                      double y)

distance

public double distance(MapPoint p)

distance

public double distance(java.awt.geom.Point2D.Double p)

distance

public double distance(java.awt.geom.Point2D p)

intersectionPoint

public java.awt.geom.Point2D.Double intersectionPoint(Line line)

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 - 交点を求める線分
戻り値:
線分との交点の配列

hashCode

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

equals

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

toString

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