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.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Object©Mapbar Engine Team;All Rights Reserved