bakutan.common.math
クラス BShape

java.lang.Object
  上位を拡張 bakutan.common.math.BShape

public class BShape
extends java.lang.Object

作成者:
cattaka 形状を表すクラス

フィールドの概要
static int CIRCLE
           
static int COMPOSITE
           
static int LINE
           
static int RECTANGLE
           
 
コンストラクタの概要
BShape()
           
BShape(BShape[] shapes)
           
BShape(BVector2f p1, BVector2f p2)
           
BShape(BVector4f square)
           
BShape(float radius)
           
 
メソッドの概要
 BShape[] getComposite()
           
 BVector2f getPoint1()
           
 BVector2f getPoint2()
           
 float getRadius()
          半径を得る
 BVector4f getRectangle()
           
 int getType()
           
 void setComposite(BShape[] composite)
           
 void setPoint1(BVector2f p1)
           
 void setPoint2(BVector2f p2)
           
 void setRadius(float radius)
          半径を設定する
 void setRectangle(BVector4f sq)
           
 void setType(int type)
           
 
クラス 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)