public abstract class Bounds extends Object
| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
Bounds(double minX, double minY, double minZ, double width, double height, double depth)
Boundsクラスの新規インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
abstract boolean |
contains(Bounds b)
この
Boundsの内部に、指定されたBounds (b)が完全に含まれるかどうかをテストします。 |
abstract boolean |
contains(double x, double y)
指定された
(x, y)座標がBoundsの境界の内側にあるかどうかをテストします。 |
abstract boolean |
contains(double x, double y, double z)
指定された
(x, y, z)座標がBoundsの境界の内側にあるかどうかをテストします。 |
abstract boolean |
contains(double x, double y, double w, double h)
この
Boundsの内部に、指定された矩形領域が完全に含まれるかどうかをテストします。 |
abstract boolean |
contains(double x, double y, double z, double w, double h, double d)
この
Boundsの内部に、指定された矩形領域が完全に含まれるかどうかをテストします。 |
abstract boolean |
contains(Point2D p)
指定された点が
Boundsの境界の内側にあるかどうかをテストします。 |
abstract boolean |
contains(Point3D p)
指定された点が
Boundsの境界の内側にあるかどうかをテストします。 |
double |
getDepth()
この
Boundsの奥行き。 |
double |
getHeight()
この
Boundsの高さ。 |
double |
getMaxX()
この
Boundsの右下隅のx座標。 |
double |
getMaxY()
この
Boundsの右下隅のy座標。 |
double |
getMaxZ()
この
Boundsの最大のz座標。 |
double |
getMinX()
この
Boundsの左上隅のx座標。 |
double |
getMinY()
この
Boundsの左上隅のy座標。 |
double |
getMinZ()
この
Boundsの最小のz座標。 |
double |
getWidth()
この
Boundsの幅。 |
abstract boolean |
intersects(Bounds b)
この
Boundsの内部が、指定されたBounds (b)の内部と交差しているかどうかをテストします。 |
abstract boolean |
intersects(double x, double y, double w, double h)
この
Boundsの内部が、指定された矩形領域の内部と交差しているかどうかをテストします。 |
abstract boolean |
intersects(double x, double y, double z, double w, double h, double d)
この
Boundsの内部が、指定された矩形領域の内部と交差しているかどうかをテストします。 |
abstract boolean |
isEmpty()
この境界のディメンション(幅、高さまたは奥行き)のいずれかがゼロ未満であるかどうかを示します。
|
protected Bounds(double minX,
double minY,
double minZ,
double width,
double height,
double depth)
Boundsクラスの新規インスタンスを作成します。minX - 左上隅のX座標minY - 左上隅のY座標minZ - Boundsの最小のz座標width - Boundsの幅height - Boundsの高さdepth - Boundsの奥行きpublic final double getMinX()
Boundsの左上隅のx座標。public final double getMinY()
Boundsの左上隅のy座標。public final double getMinZ()
Boundsの最小のz座標。public final double getWidth()
Boundsの幅。public final double getHeight()
Boundsの高さ。public final double getDepth()
Boundsの奥行き。public final double getMaxX()
Boundsの右下隅のx座標。minX + widthpublic final double getMaxY()
Boundsの右下隅のy座標。minY + heightpublic final double getMaxZ()
Boundsの最大のz座標。minZ + depthpublic abstract boolean isEmpty()
public abstract boolean contains(Point2D p)
Boundsの境界の内側にあるかどうかをテストします。p - テストされる指定された点Boundsの境界の内側にある場合はtrue、そうでない場合はfalse。public abstract boolean contains(Point3D p)
Boundsの境界の内側にあるかどうかをテストします。p - テストされる指定された3D点Boundsの境界の内側にある場合はtrue、そうでない場合はfalse。public abstract boolean contains(double x,
double y)
(x, y)座標がBoundsの境界の内側にあるかどうかをテストします。x - テストされる指定されたx座標y - テストされる指定されたy座標(x, y)座標がこのBoundsの境界の内側にある場合はtrue、そうでない場合はfalse。public abstract boolean contains(double x,
double y,
double z)
(x, y, z)座標がBoundsの境界の内側にあるかどうかをテストします。x - テストされる指定されたx座標y - テストされる指定されたy座標(x, y)座標がこのBoundsの境界の内側にある場合はtrue、そうでない場合はfalse。public abstract boolean contains(Bounds b)
Boundsの内部に、指定されたBounds (b)が完全に含まれるかどうかをテストします。b - 指定されたBoundsb)がこのBoundsの境界の内側にある場合はtrue、そうでない場合はfalse。public abstract boolean contains(double x,
double y,
double w,
double h)
Boundsの内部に、指定された矩形領域が完全に含まれるかどうかをテストします。x - 指定された矩形領域の左上隅のx座標y - 指定された矩形領域の左上隅のy座標w - 指定された矩形領域の幅h - 指定された矩形領域の高さBoundsの内部に、指定された矩形領域が完全に含まれる場合はtrue、そうでない場合はfalse。public abstract boolean contains(double x,
double y,
double z,
double w,
double h,
double d)
Boundsの内部に、指定された矩形領域が完全に含まれるかどうかをテストします。x - 指定された矩形ボリュームの左上隅のx座標y - 指定された矩形ボリュームの左上隅のy座標z - 指定された矩形ボリュームの左上隅のz座標w - 指定された矩形ボリュームの幅h - 指定された矩形ボリュームの高さd - 指定された矩形ボリュームの奥行きBoundsの内部に、指定された矩形領域が完全に含まれる場合はtrue、そうでない場合はfalse。public abstract boolean intersects(Bounds b)
Boundsの内部が、指定されたBounds (b)の内部と交差しているかどうかをテストします。b - 指定されたBoundsBoundsの内部と指定されたBounds (b)の内部が交差している場合はtrue。public abstract boolean intersects(double x,
double y,
double w,
double h)
Boundsの内部が、指定された矩形領域の内部と交差しているかどうかをテストします。x - 指定された矩形領域の左上隅のx座標y - 指定された矩形領域の左上隅のy座標w - 指定された矩形領域の幅h - 指定された矩形領域の高さBoundsの内部と矩形領域の内部が交差している場合はtrue。public abstract boolean intersects(double x,
double y,
double z,
double w,
double h,
double d)
Boundsの内部が、指定された矩形領域の内部と交差しているかどうかをテストします。x - 指定された矩形ボリュームの左上隅のx座標y - 指定された矩形ボリュームの左上隅のy座標z - 指定された矩形ボリュームの左上隅のz座標w - 指定された矩形ボリュームの幅h - 指定された矩形ボリュームの高さd - 指定された矩形ボリュームの奥行きBoundsの内部と矩形領域の内部が交差している場合はtrue。Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.