jp.digitalmuseum.utils
クラス ScreenVector2D
java.lang.Object
jp.digitalmuseum.utils.ScreenVector2D
-
すべての実装されたインタフェース:
- java.io.Serializable
-
直系の既知のサブクラス:
- ScreenPosition
-
public class ScreenVector2D
- extends java.lang.Object
- implements java.io.Serializable
2D vector in a screen coordinate.
- 作成者:
- Jun KATO
- 関連項目:
- 直列化された形式
フィールドの概要 |
protected int |
x
|
protected int |
y
|
メソッドの概要 |
void |
add(int x,
int y)
|
void |
add(ScreenVector2D v)
|
void |
addOut(int x,
int y,
ScreenVector2D out)
|
void |
addOut(ScreenVector2D v,
ScreenVector2D out)
|
void |
div(double l)
|
void |
divOut(double l,
ScreenVector2D out)
|
int |
dot(int x,
int y)
|
int |
dot(ScreenVector2D v)
|
int |
getX()
|
int |
getY()
|
void |
mul(double l)
|
void |
mulOut(double l,
ScreenVector2D out)
|
void |
set(int x,
int y)
|
void |
set(ScreenVector2D p)
|
void |
setX(int x)
|
void |
setY(int y)
|
void |
sub(int x,
int y)
|
void |
sub(ScreenVector2D v)
|
void |
subOut(int x,
int y,
ScreenVector2D out)
|
void |
subOut(ScreenVector2D v,
ScreenVector2D out)
|
java.lang.String |
toString()
|
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
protected int x
y
protected int y
ScreenVector2D
public ScreenVector2D()
ScreenVector2D
public ScreenVector2D(int x,
int y)
ScreenVector2D
public ScreenVector2D(java.awt.Point p)
ScreenVector2D
public ScreenVector2D(ScreenVector2D v)
set
public void set(int x,
int y)
set
public void set(ScreenVector2D p)
setX
public void setX(int x)
getX
public int getX()
setY
public void setY(int y)
getY
public int getY()
add
public void add(ScreenVector2D v)
add
public void add(int x,
int y)
addOut
public void addOut(ScreenVector2D v,
ScreenVector2D out)
addOut
public void addOut(int x,
int y,
ScreenVector2D out)
sub
public void sub(ScreenVector2D v)
sub
public void sub(int x,
int y)
subOut
public void subOut(ScreenVector2D v,
ScreenVector2D out)
subOut
public void subOut(int x,
int y,
ScreenVector2D out)
mul
public void mul(double l)
mulOut
public void mulOut(double l,
ScreenVector2D out)
div
public void div(double l)
divOut
public void divOut(double l,
ScreenVector2D out)
dot
public int dot(ScreenVector2D v)
dot
public int dot(int x,
int y)
toString
public java.lang.String toString()
- オーバーライド:
- クラス
java.lang.Object
内の toString
Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/