bakutan.common.math
クラス BShape
java.lang.Object
bakutan.common.math.BShape
public class BShape
- extends java.lang.Object
- 作成者:
- cattaka
形状を表すクラス
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CIRCLE
public static final int CIRCLE
- 関連項目:
- 定数フィールド値
LINE
public static final int LINE
- 関連項目:
- 定数フィールド値
RECTANGLE
public static final int RECTANGLE
- 関連項目:
- 定数フィールド値
COMPOSITE
public static final int COMPOSITE
- 関連項目:
- 定数フィールド値
BShape
public BShape()
BShape
public BShape(float radius)
BShape
public BShape(BVector2f p1,
BVector2f p2)
BShape
public BShape(BVector4f square)
BShape
public BShape(BShape[] shapes)
getRadius
public float getRadius()
- 半径を得る
- 戻り値:
- 半径
setRadius
public void setRadius(float radius)
- 半径を設定する
- パラメータ:
radius
- 設定する半径
setType
public void setType(int type)
getType
public int getType()
getPoint1
public BVector2f getPoint1()
setPoint1
public void setPoint1(BVector2f p1)
getPoint2
public BVector2f getPoint2()
setPoint2
public void setPoint2(BVector2f p2)
getRectangle
public BVector4f getRectangle()
setRectangle
public void setRectangle(BVector4f sq)
getComposite
public BShape[] getComposite()
setComposite
public void setComposite(BShape[] composite)