public class Vector2D
extends java.lang.Object
构造器和说明 |
---|
Vector2D()
空构造函数
|
Vector2D(int x,
int y)
根据两个坐标值构造对象
|
Vector2D(Vector2D v)
根据已经存在的
Vector2DF 构造一个相同的对象 |
public Vector2D()
public Vector2D(int x, int y)
x
- x方向值y
- y方向值public int getX()
Vector2DF
的x坐标值public int getY()
Vector2DF
的y坐标值public void set(int x, int y)
Vector2DF
值x
- x坐标值y
- y坐标值public java.lang.String toString()
toString
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
©Mapbar Engine Team;All Rights Reserved