public class RectangleBounds extends BaseBounds
| Modifier and Type | Field and Description |
|---|---|
Vector |
box |
angle, position, radius| Constructor and Description |
|---|
RectangleBounds(float center_x,
float center_y,
float width,
float height)
コンストラクタ 中心座標と幅・高さを指定して生成
|
RectangleBounds(float center_x,
float center_y,
float center_z,
float width,
float height,
float depth)
コンストラクタ 中心座標と幅・高さを指定して生成
|
RectangleBounds(android.graphics.Rect rect)
コンストラクタ 外形枠を指定
|
RectangleBounds(Vector center,
float width,
float height)
コンストラクタ 中心座標と幅・高さを指定して生成
|
RectangleBounds(Vector lowerLeft,
Vector upperRight)
コンストラクタ 左下と右上の座標を指定して生成
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Rect |
boundsRect()
外形枠を取得
|
android.graphics.Rect |
boundsRect(float a)
外形枠を取得
|
boolean |
ptInBounds(float x,
float y,
float z)
指定座標が図形内に存在するかどうか
|
centerX, centerX, centerY, centerY, centerZ, centerZ, move, move, move, ptInBounds, ptInBounds, ptInBoundsSphere, rotate, rotate, rotateX, rotateY, rotateZ, set, setPosition, setPosition, setPositionpublic final Vector box
public RectangleBounds(float center_x,
float center_y,
float center_z,
float width,
float height,
float depth)
center_x - center_y - center_z - width - height - depth - public RectangleBounds(float center_x,
float center_y,
float width,
float height)
center_x - center_y - width - height - public RectangleBounds(Vector center, float width, float height)
center - width - height - public RectangleBounds(Vector lowerLeft, Vector upperRight)
lowerLeft - 左下座標upperRight - 右上座標public RectangleBounds(android.graphics.Rect rect)
rect - public boolean ptInBounds(float x,
float y,
float z)
ptInBounds in class BaseBoundspublic android.graphics.Rect boundsRect()
public android.graphics.Rect boundsRect(float a)
a - スケールファクタ, 1> 拡大, <1 縮小