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 + width
public final double getMaxY()
Bounds
の右下隅のy座標。minY + height
public final double getMaxZ()
Bounds
の最大のz座標。minZ + depth
public 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.