戻る

lib.math
クラス Vector2

java.lang.Object
  |
  +--lib.math.Vector2

public class Vector2
extends java.lang.Object

2 次元ベクトルを表すクラスです。

導入されたバージョン:
1999/12/24

コンストラクタの概要
Vector2()
           
Vector2(float x, float y)
           
Vector2(Vector2 vector)
           
 
メソッドの概要
 Vector2 add(Vector2 addend)
           
 float dot(Vector2 multiplier)
           
 void finalize()
           
 double getAngle(Vector2 target)
           
 lib.math.D3DXVECTOR2 getDXVector()
           
 float getLength()
           
 float getLength2()
           
 float getX()
           
 float getY()
           
 boolean isZero()
           
 Vector2 multiply(float multiplier)
           
 Vector2 normalize()
           
 void operator_delete(lib.math.VOID[] object)
           
 Vector2 operator_minus(Vector2 value1)
           
 lib.math.VOID[] operator_new(lib.math.size_t size)
           
 Vector2 operator_plus(Vector2 addend)
           
 Vector2 operator_star(float multiplier)
           
 void set(float x, float y)
           
 void set(Vector2 vector)
           
 void setAddition(Vector2 value, Vector2 addend)
           
 void setBaryCentric(Vector2 v1, Vector2 v2, Vector2 v3, float weight2, float weight3)
           
 void setInterpolation(Vector2 v1, Vector2 v2, double blend)
           
 void setMultiplication(float multiplier)
           
 void setNormalize()
           
 void setSubtraction(Vector2 value0, Vector2 value1)
           
 void setZero()
           
 Vector2 subtract(Vector2 value1)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

Vector2

public Vector2(float x,
               float y)

Vector2

public Vector2(Vector2 vector)

Vector2

public Vector2()
メソッドの詳細

operator_new

public lib.math.VOID[] operator_new(lib.math.size_t size)

operator_delete

public void operator_delete(lib.math.VOID[] object)

getDXVector

public lib.math.D3DXVECTOR2 getDXVector()

getX

public float getX()

getY

public float getY()

isZero

public boolean isZero()

set

public void set(Vector2 vector)

set

public void set(float x,
                float y)

setZero

public void setZero()

setAddition

public void setAddition(Vector2 value,
                        Vector2 addend)

setSubtraction

public void setSubtraction(Vector2 value0,
                           Vector2 value1)

setMultiplication

public void setMultiplication(float multiplier)

setNormalize

public void setNormalize()

setInterpolation

public void setInterpolation(Vector2 v1,
                             Vector2 v2,
                             double blend)

setBaryCentric

public void setBaryCentric(Vector2 v1,
                           Vector2 v2,
                           Vector2 v3,
                           float weight2,
                           float weight3)

getLength

public float getLength()

getLength2

public float getLength2()

getAngle

public double getAngle(Vector2 target)

add

public Vector2 add(Vector2 addend)

operator_plus

public Vector2 operator_plus(Vector2 addend)

subtract

public Vector2 subtract(Vector2 value1)

operator_minus

public Vector2 operator_minus(Vector2 value1)

dot

public float dot(Vector2 multiplier)

multiply

public Vector2 multiply(float multiplier)

operator_star

public Vector2 operator_star(float multiplier)

normalize

public Vector2 normalize()

finalize

public void finalize()
オーバーライド:
クラス java.lang.Object 内の finalize

戻る