public Vector2(float xx, float yy, float x1x, float y1y)
public float length_vec()
float length = (float)Math.Sqrt(x * x + y * y);
public float length_vec1()
float length = (float)Math.Sqrt(x1 * x1 + y1 * y1);
public float normalx_vec()
public float normaly_vec()
public float normalx1_vec()
public float normaly1_vec()
Vector2 vec1 = new Vector2(1, 3, 5, 1);
static float dot_product(Vector2 vec)
float dotp = vec.Get_x() * vec.Get_y1() + vec.Get_y() * vec.Get_x1();
static float KhoangCach(Vector2 vec)
float khoangCach = (float)Math.Sqrt((vec.Get_x1() - vec.Get_x()) * (vec.Get_x1() - vec.Get_x()) + (vec.Get_y1() - vec.Get_y()) * (vec.Get_y1() - vec.Get_y()));