クラス
bakutan.common.math.BVector2f の使用

BVector2f を使用しているパッケージ
bakutan.common   
bakutan.common.ai   
bakutan.common.math   
 

bakutan.common での BVector2f の使用
 

BVector2f を返す bakutan.common のメソッド
static BVector2f DataManager.convByteToBVector(byte src)
           
 BVector2f BStage.getBufferCenter()
           
 BVector2f Body.getDirection()
          このインスタンスの方向を表すBVector2fの実体を返す。
 BVector2f[] BStage.getFreePoint()
           
 BVector2f Body.getPosition()
          位置のBVector2fの実態を取得する。
 BVector2f BStage.getRandomeFreePoint()
           
 BVector2f BStage.getRandomeSpawnPoint()
           
 BVector2f BStage.getSize()
           
 BVector2f[] BStage.getSpawnPoint()
           
 BVector2f Body.getVelocity()
          速度のBVector2fの実体を取得する。
 BVector2f DataManager.inputBVector2d(java.io.DataInputStream in)
           
 BVector2f[] DataManager.inputBVector2ds(java.io.DataInputStream in)
           
 

BVector2f 型のパラメータを持つ bakutan.common のメソッド
 void EventHandler.action(long currentTime, long generationTime, Body target, BVector2f position, byte action)
           
 void Body.actionForClient(bakutan.common.event.BodyEvent bodyEvent, ClientBody mybody, bakutan.common.graphics.CharacterImageBundle cib, bakutan.common.graphics.EffectBundle eb, BUserInterface ui, long currenttime, BVector2f bufferCenter)
           
static byte DataManager.convBVectorToByte(BVector2f vec)
           
abstract  void BStage.drawRadar(java.awt.Graphics bg, long currenttime, java.awt.Dimension size, Body myBody, BVector2f center)
           
 boolean Body.eventAction(EventHandler eventHandler, BStage bstage, BVector2f position, bakutan.common.event.BodyActionEvent event)
           
 boolean Body.isInSite(BVector2f pos, BShape shape)
           
 boolean BStage.isIntersectOther(BVector2f position, BShape pg, int state)
           
 void EventHandler.move(long currentTime, long generationTime, Body target, BVector2f position, BVector2f velocity, BVector2f direction)
           
 void DataManager.outputData(java.io.DataOutputStream out, BVector2f vec)
           
 void DataManager.outputData(java.io.DataOutputStream out, BVector2f[] vs)
           
 void BStage.pickAllByType(BVector2f pos, BShape pg, byte type, java.util.Set<Body> destination)
           
 BPickIntersection BStage.pickClosest(BVector2f start, BVector2f end, int state)
           
 void BStage.setBufferCenter(BVector2f bufferCenter)
           
 void Body.setDirection(BVector2f direction)
           
 void BStage.setFreePoint(BVector2f[] freePoint)
           
 void Body.setPosition(BVector2f position)
           
 void EventHandler.setPosition(long currentTime, long generationTime, Body target, BVector2f position)
           
 void BStage.setSize(BVector2f size)
           
 void BStage.setSpawnPoint(BVector2f[] spawnPoint)
           
 void Body.setVelocity(BVector2f velocity)
           
 void EventHandler.sound(long currentTime, long generationTime, BVector2f pos, byte type)
           
 

bakutan.common.ai での BVector2f の使用
 

BVector2f を返す bakutan.common.ai のメソッド
 BVector2f AIOutput.getActiontarget()
          アクションターゲットの位置を得る。
 BVector2f BodyInfoForAI.getDirection()
          このインスタンスの方向を表すBVector2fを返す。
 BVector2f BodyInfoForAI.getPosition()
          位置を取得する。
 BVector2f BStageInfoForAI.getSize()
          ステージの範囲を表すベクトルを返す。
 BVector2f BodyInfoForAI.getVelocity()
          速度を取得する。
 BVector2f AIOutput.getVelocity()
          移動の速度を得る。
 

BVector2f 型のパラメータを持つ bakutan.common.ai のメソッド
 void AIOutput.setActiontarget(BVector2f actiontarget)
          アクションターゲットの位置を設定する。
 void BodyInfoForAIComparator.setTarget(BVector2f target)
           
 void AIOutput.setVelocity(BVector2f velocity)
          移動の速度を設定する。
 

bakutan.common.math での BVector2f の使用
 

BVector2f を返す bakutan.common.math のメソッド
 BVector2f BShape.getPoint1()
           
 BVector2f BShape.getPoint2()
           
 

BVector2f 型のパラメータを持つ bakutan.common.math のメソッド
 void BVector2f.add(BVector2f v)
          引数vをこのインスタンスに加算する。
static boolean BMath.calcNormal(BVector2f dest1, BVector2f dest2, BVector2f p1, BShape shape1, BVector2f p2, BShape shape2)
          2つの物体が接触しているときの法線を得る。
static boolean BMath.calcNormalCirclexCircle(BVector2f dest1, BVector2f dest2, BVector2f p1, BVector2f p2)
           
static boolean BMath.calcNormalCirclexLine(BVector2f dest1, BVector2f dest2, BVector2f p1, float radius1, BVector2f p2, BVector2f p21, BVector2f p22)
           
static boolean BMath.calcNormalCirclexRectangle(BVector2f dest1, BVector2f dest2, BVector2f p1, float radius1, BVector2f p2, BVector4f sq2)
           
 void BVector2f.get(BVector2f v)
          引数vにこのインスタンスの内容をコピーする。
static double BVector2f.getAngle(BVector2f a, BVector2f b)
          2つのベクトルの角度(ラジアン値)を返す。
static float BMath.getClosestIntersection(BVector2f start, BVector2f end, BVector2f pos, BShape circle)
          線分start-end(両端含む)と位置posの半径円の最近の交点を得る。
static float BMath.getClosestIntersection(BVector2f start, BVector2f end, BVector2f pos, float radius)
          線分start-end(両端含む)と位置posの半径円の最近の交点を得る。
static void BMath.getClosestPoint(BVector2f dest, BVector2f p1, BVector2f v, BVector2f p2)
          点p1から方向vに伸びる線上の点p2にもっとも近い点を得る。
static float BVector2f.getCross(BVector2f a, BVector2f b)
          2つのベクトルの外積を返す。
static float BVector2f.getDistance(BVector2f a, BVector2f b)
          2つのベクトルの距離を返す。
static float BVector2f.getDot(BVector2f a, BVector2f b)
          2つのベクトルの内積を返す。
static boolean BMath.getIntersection(BVector2f dest, BVector2f p11, BVector2f p12, BVector2f p21, BVector2f p22)
          線分p11-p12と線分p21-p22(両端を含む)の共有点を求める。
static void BMath.getLineFunction(BVector3f dest, BVector2f pos1, BVector2f pos2)
          pos1とpos2を通る一次関数を得る。
static boolean BMath.isIntersect(BVector2f p1, BShape shape1, BVector2f p2, BShape shape2)
          2つの物体が交差しているか判定する。
static boolean BMath.isIntersect(BVector2f dest, BVector2f p11, BVector2f p12, BVector2f p21, BVector2f p22)
          線分p11-p12と線分p21-p22(両端を含む)の共有点を求める。
static boolean BMath.isIntersectCirclexCirle(BVector2f p1, float radius1, BVector2f p2, float radius2)
          位置p1、半径radius1の円と位置p2、半径radius2の円が共有部分を持つか調べる。
static boolean BMath.isIntersectCirclexLine(BVector2f p1, float radius1, BVector2f p2, BVector2f p21, BVector2f p22)
          位置p1、半径radius1の円1と位置pos、線p21-p22の線が交差するか調べる。
static boolean BMath.isIntersectCirclexRectangle(BVector2f p1, float radius1, BVector2f p2, BVector4f sq2)
           
static boolean BMath.isIntersectInner(BVector2f dest, BVector2f p11, BVector2f p12, BVector2f p21, BVector2f p22)
          線分p11-p12の内部と線分p21-p22の内部(両端を含まない)の共有点を求める。
static boolean BMath.isIntersectPointxCirle(BVector2f p1, BVector2f p2, float radius2)
          位置p1の円と位置p2、半径radius2の円が共有部分を持つか調べる。
static boolean BMath.isIntersectPointxRectangle(BVector2f p1, BVector2f p2, BVector4f sq2)
           
static boolean BMath.isIntersectRectanglexRectangle(BVector2f p1, BVector4f sq1, BVector2f p2, BVector4f sq2)
           
static boolean BMath.isOff(BVector2f p1, BVector2f v1, BVector2f p2, BVector2f v2)
          点p1から速度v1で動く点と点p2から速度v2で動く点が遠ざかっているか調べる。
static boolean BMath.isOnLine(BVector2f a1, BVector2f a2, BVector2f b)
          a1とa2の線分上にbが存在するか調べる。
static boolean BMath.isOnLineInner(BVector2f a1, BVector2f a2, BVector2f b)
          a1とa2の線分の内部にbが存在するか調べる。
static float BMath.nextCollid(BVector2f p1, BShape shape1, BVector2f v1, BVector2f p2, BShape shape2, BVector2f v2)
          物体1と物体2の衝突するまでの時間を得る。
static float BMath.nextCollidCirclexCircle(BVector2f p1, float radius1, BVector2f v1, BVector2f p2, float radius2, BVector2f v2)
          円1と円2の衝突するまでの時間を得る。
static float BMath.nextCollidCirclexLine(BVector2f p1, float radius1, BVector2f v1, BVector2f p2, BVector2f p21, BVector2f p22, BVector2f v2)
          円と位置pos、線の衝突するまでの時間とその法線を得る。
static float BMath.nextCollidCirclexRectangle(BVector2f p1, float radius1, BVector2f v1, BVector2f p2, BVector4f sq2, BVector2f v2)
          円と長方形の衝突するまでの時間を得る。
static float BMath.nextCollidPointxCircle(BVector2f p1, BVector2f v1, BVector2f p2, float radius2, BVector2f v2)
          円1と円2の衝突するまでの時間とその法線を得る。
static float BMath.nextCollidPointxLine(BVector2f p1, BVector2f v1, BVector2f p2, BVector2f p21, BVector2f p22, BVector2f v2)
          点と線の衝突するまでの時間とその法線を得る。
static float BMath.nextCollidPointxRectangle(BVector2f p1, BVector2f v1, BVector2f p2, BVector4f sq2, BVector2f v2)
          点と長方形の衝突するまでの時間を得る。
static float BMath.nextCollidRectanglexRectangle(BVector2f p1, BVector2f v1, BVector2f p2, BVector4f sq1, BVector2f v2)
          未実装。
 void BVector2f.scaleAdd(float d, BVector2f v)
          引数dと引数vのスカラー倍をこのインスタンスに加算する。
 void BVector2f.set(BVector2f v)
          与えられたベクトルの値をこのインスタンスに設定する。
 void BShape.setPoint1(BVector2f p1)
           
 void BShape.setPoint2(BVector2f p2)
           
 void BVector2f.sub(BVector2f v)
          引数vをこのインスタンスに減算する。
 

BVector2f 型のパラメータを持つ bakutan.common.math のコンストラクタ
BShape(BVector2f p1, BVector2f p2)
           
BVector2f(BVector2f v)
          与えられたベクトルと同じ値で初期化する。